How do I read specific lines from a txt file in Qt ?
-
How do I read specific lines from a txt file in Qt ?
Suppose there are ten lines in text file and I have to read only fourth line. -
How do I read specific lines from a txt file in Qt ?
Suppose there are ten lines in text file and I have to read only fourth line.@Pappu-Kumar-Keshari said in How do I read specific lines from a txt file in Qt ?:
Suppose there are ten lines in text file and I have to read only fourth line.
Use QFile::readLine() until you're at the 4th line.
-
or
head -4 file | tail -1
no programming regquired
ROLF
-
or
head -4 file | tail -1
no programming regquired
ROLF
@Kent-Dorfman said in How do I read specific lines from a txt file in Qt ?:
or
head -4 file | tail -1
no programming regquired
What is programming?