continuously I/O'ing to a text file

webster972

Member
Joined
Jun 23, 2004
Messages
7
Im new to VB.NET, Im stuck on a school assignment and was wondering if you guys could help? I was wondering ( I have looked through the forums and did some searches already) how I can have 3 processes continuously reading a .txt file? For example, if the txt file contained a 1, the first process will have control, if it was a 2, the second process will have control and so on. The control part I will figure out later using conditional statements, but I need to make all 3 processes read/write a character to a txt. file, hopefully you guys could give me some ideas, thanks!
 
Well, if you remember to close the StreamReader after you create it, you should be able to access the file with as many applications as you like, granted that they dont all try to access the file at the same time.
 
Back
Top