StreamWriter Problem

A

Armin Zingler

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
 
R

Ryan S. Thiele

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top