N
Nafai
Hello!
I'd be very grateful if you can give some advice to me. I explain my
problem:
I want to read a file whose structure I need to be like this:
#comments...
value1,value2,value3,...,valueN # comments...
#comments...
value1,value2,value3,...,valueN # comments...
....
value1,value2,value3,...,valueN # comments...
So what I want is to be able to read a file in which there are some
lists of values separated by new line. Each value is separated by a
comma. And there may be comments at the beggining or at the end of any line.
I can't use getline(...,...,'\n') because I have to take care of '#'
I can't use getline(...,...,'\#') because comments are not compulsory.
So what do you suggest?
thanks.
I'd be very grateful if you can give some advice to me. I explain my
problem:
I want to read a file whose structure I need to be like this:
#comments...
value1,value2,value3,...,valueN # comments...
#comments...
value1,value2,value3,...,valueN # comments...
....
value1,value2,value3,...,valueN # comments...
So what I want is to be able to read a file in which there are some
lists of values separated by new line. Each value is separated by a
comma. And there may be comments at the beggining or at the end of any line.
I can't use getline(...,...,'\n') because I have to take care of '#'
I can't use getline(...,...,'\#') because comments are not compulsory.
So what do you suggest?
thanks.