cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to print file on command line?
How to print file on command line?
Jul 28, 2009 at 3:15pm UTC
rain
(84)
I tried thiat example
http://www.cplusplus.com/reference/clibrary/cstdio/fread/
but it dont print text on screen, how I can change it to do it?
Jul 28, 2009 at 3:54pm UTC
Bazzy
(6281)
That shows how to get the file contents in a buffer, you need to print the content of that to the standard output to show it.
http://www.cplusplus.com/reference/clibrary/cstdio/printf/
http://www.cplusplus.com/reference/clibrary/cstdio/puts/
Topic archived. No new replies allowed.