locking - In .Net using File.CreateText() also locks file, why? -
I was using the CreateText method to create an empty file (bottom) in "App1" and then another file in that file Tried to write the application, but it was closed but it was not closed. Until I left "App 1" it was not unlocked.
File Composition (path)
To fix this, I can do this:
> Stream Vectors = Dust flags in the form of a file. Createtext (path) sw.Close ()
Why only make text to create a file? Is some underlying serial or file writer or something being created?
tep
Yes it happens. Returns the CreateText ()
a StreamWriter
object, which is open for the file you specify.
If you ignore the return value only, then StreamerMaster hangs around
, holding on your file, you really have to deal with it as the second block of code.
Comments
Post a Comment