Dear all,
I have a text file in the form of
1 2 3 4 5 6
--------/--------/--------/--------/--------/--------/ (I just used /
to better explain the fields)
6 fields of 8 characters. I want to read lets say fields 4,5 and 6 and
then go to the begining of the newline which is in the same format. And
then I will test the first character of the newline with $ and if true
the read process will terminate. I can read fields by positioning the
file pointer with seekg() function. Is there a direct way to position
the file pointer to the start of a newline.
I tried things but all gone wrong, I could not solve the problem of
going to the start of the newline.
Any help is appreciated.
Thanks.