Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Read/write file at same time? (C#)
Name: Leo the 28C (by Sulfurik) Date: June 29, 2005 at 19:44:45 Pacific OS: Windows XP SP2 CPU/Ram: 1.4 GHz/480 MB
Comment:
Hello everyone! :D OK, this is frustrating me... How do I open a file for reading and writing at the same time? I've tried having a StreamReader and a StreamWriter at the same time, but that raises some exceptions... I also tried doing a FileStream Stream and it didn't work... How do I do this? Thanks! ;)
Name: wizard-fred Date: June 30, 2005 at 00:16:10 Pacific
Reply:
What you need is the equivalent of BASIC's binary or random access mode. I don't think you can use a stream mode, you need a block mode with a fixed record length.
0
Response Number 2
Name: Leo the 28C (by Sulfurik) Date: June 30, 2005 at 16:16:53 Pacific
Reply:
Huh? O_O Well, that sounds complicated... I'll just have to switch between StreamReader and Writer... But thanks! ;)
Summary: Hey see, my computer specs are quite pathetic! So you cannot expect me to be involved in the gaming world. I write here because I'm an avid C++ programmer. Currently, I'm programming a Role-Playing te...
Summary: Could anyone tell me how to read a file from subroutine in c++?. I can read a file in main program,but i just can't figure out how to do it from subroutine. No book tells how to do it. I need little h...