Basically I use text files to hold the program data, which is loaded in to variables when the program starts.
I use StreamWriter to write to the text files when they update within the program. This is fine although the writer adds a extra line when I do not want this, which causes the program to error on the next use.
This is what I mean:
For x = 1 to 4 FileWriter.WriteLine(user(x) & "," & pass(x)) Next
Comes out as (the text doesn't matter here)
| <---- but the cursor goes here making the application think that there is a extra line of data which there isn't hence causing it to error.
I also use the 'how many lines in the file' as a variable in various parts of my program.
Please could someone shed any light on this issue.
Many Thanks :)