Reading and Writing files using Streamreader/StreamWriter

  • Thread starter Thread starter Stephen
  • Start date Start date
S

Stephen

Hi,

I am reading a file (c:\address.txt) using streamreader and I want to make
changes to a line in the file and save it.
will there be a locking issue if I read and write to the samefile
simultaneously?

Thanks,
Stephen
 
will there be a locking issue if I read and write to the samefile
simultaneously?

Yes.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.
 

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

Back
Top