C++:Read a Text File

From Progzoo
Jump to navigation Jump to search
You can open a text file and read each line.

You read each line into a buffer s in this case the buffer size has been set to 1024 characters.

The text file http://progzoo.net/haggis.txt includes some lines of text.

[Font] [Default] [Show] [Resize] [History] [Profile]