Reading and Writing files using Streamreader/StreamWriter

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
 
K

Kevin Spencer

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

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
45,000
Latest member
MurrayKeync

Latest Threads

Top