Quantcast
Channel: QtWebEngine
Viewing all articles
Browse latest Browse all 13965

Read a file and distinguish CR/LF and LF char

$
0
0
Hello everybody Happy new year all of you! I come here because I need some help about file reading. Actually, I have a program that read a file through QTextStream. But now, I have to distinguish CR/LF and LF new line character. In fact, I want to know if each line in the file ended with CR/LF or with LF, knowing that the file have some line that finished by CR/LF and some other that finish by LF. Thanks a lot for your help.

Viewing all articles
Browse latest Browse all 13965

Trending Articles