How to solve the problem of access to the file: the program fell out with an unhandled exception.
I made this function:
Inserted a loop until this check returns false:
But now the program goes into an eternal cycle. How to solve these problems?
How to solve the problem of access to the file: the program fell out with an unhandled exception.
I made this function:
Inserted a loop until this check returns false:
But now the program goes into an eternal cycle. How to solve these problems?
It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:
A lot of options can be used to create a file and write data to it, but for me the easiest is to use the File class. He has a lot of methods, but for your example this one will do for example. Under the link, there are examples of the use and description of possible "expositions", and a lot of additional information (it is not surprising - it’s all the same). The only thing I want to add is work with threads. By examples from the links it is clear that when creating a stream to read or write a file, the "yuzing" construction is used. I do not know how well you are aware of this possibility of the language, but either use such a construct, or close with your hands the threads you create.
Source: https://ru.stackoverflow.com/questions/87235/
All Articles