StreamWriter Problem

  • Thread starter Thread starter kimiraikkonen
  • Start date Start date
kimiraikkonen said:
Yours classes are different, so i must ask that does that differ
about encountering problem(file is being used problem)?(difference
between "system.io.filestream" and "system.io.streamwriter/reader")

I also use a StreamReader and a StreamWriter.

I'm afraid, without seeing your code I am not able to help.


Armin
 
OK, have you tried this.

Are you opening the file to read something or other?
If so, are you closing the file after you are done?

File.Open(<Filename>,Mode.Read)

' When done
File.Close

' Optional, but good practice. Clears the component from the memory.
File.Dispose

It seems you are either not closing the file when you are accessing it from
another thread.
See if this helps.
 
Back
Top