Hi all,
I want to open a status file for both reading and writing. (Managed C++ or C#)
I need to read a line, and than according to some logic change 1 char in the middle of it. (status)
I know that I can use FileStream for read and write. but FileStream does not give me the option to read a whole line...
I can go the hard way and read char by char until I get to a newline sign, for reading 1 full line from the file. But Im sure that there is some way for me to be able to read a whole line , and do some manipulations on it.
I also need to be able to scan the file with a file pointer so I will be able to change this 1 char I was talking about.
Thanks for any help!
I want to open a status file for both reading and writing. (Managed C++ or C#)
I need to read a line, and than according to some logic change 1 char in the middle of it. (status)
I know that I can use FileStream for read and write. but FileStream does not give me the option to read a whole line...
I can go the hard way and read char by char until I get to a newline sign, for reading 1 full line from the file. But Im sure that there is some way for me to be able to read a whole line , and do some manipulations on it.
I also need to be able to scan the file with a file pointer so I will be able to change this 1 char I was talking about.
Thanks for any help!