I use
To read text from standard input. But I need getChar() function to block execution until user press enter so i need to open
Is this ok to call QFile::getChar when file is already open in QTextStream?
Printable View
I use
To read text from standard input. But I need getChar() function to block execution until user press enter so i need to open
Is this ok to call QFile::getChar when file is already open in QTextStream?
Why would you do that?
You can use QTextStream to write chars into the file. See operator <<
I want to read characters, not write.
I need that because I want to block execution until user press enter. Something like this won't work
if user press enter without pressing any other character before. So I need QFile::getChar()