Hi all,

I'm using a QTextSteam to parse human readable text data from a disc file, everything worked great while I used my own loops to skip over space characters but then I discovered the skipWhiteSpace function which should do the same thing in a neater coding style. Unfortunately it seems to skip in a random fashion after the first usage. Is there any other settings I need to make to the QTextSteam to fix it up (locale, codec, etc) ?

On another point, is it possible to use the reference to my QTextSteam in another subroutine so that I can write neater code (I tried to write my own skipWhiteSpace subroutine) ? I've tried to do this using various forms of referencing but the complier always complains and will only let me use it locally. I used the following initialisation in my file reading routine - QTextStream in(&file) - (The compiler don't like it when I make it a global either).


Searching through the forums hasn't flagged any matches for skipWhiteSpace.