Hi all.
Majorly bamboozled by the wxwidgets file streams. does wxFileInputStream have a GetLine() function, similar to the normal c++ file stream class???
had a wander thru the wx docs, and just ended up more confused.
heres what i want to do btw.
(note, functions are seperate but operate on same file)
here is an example of a possible line for the file being read:
12345`99`KM00099/09`Hello World`Im a line`1token1`2token2`comments
Function 1
open file, containing fields seperated by "`" symbols.
for each line in file:
extract the first field (a set of int's,).
convert this to integer var.
compares this to a variable containg the number of the last line.
keeps the larger of the two
returns the largest number in the first field
Function 2:
Exactly the same as above, but with second field rather than 1st.
Before function 3 is done, the user and program use the above to create a line similar to:
12346`100`KM00100/09`Hello World2`Im a line too`12ndlinetoken1`2blahblahtoken2`comments new entry
Function 3:
takes a line similar to above, as a wxstring, and appends it to the end of the file.
hope this all makes sence
thanks all muchly in advance.
Kev