How Do you Read a file and output the data C++ on dev compiler?

0 brandon Clark · July 26, 2015
I've tried dozens of different methods of coding in dev compiler trying to retrieve a .txt file, reading it and outputting the numbers in the .txt file. I run the code and nothing is outputted, just my return number. I don't know whats going on...

Post a Reply

Replies

Oldest  Newest  Rating
0 James Juan · July 27, 2015
use fstream header file.

then u can use
ofstream: to write on file
ifstream: to read from file
fstream: for both reading and writing
0 mical smith · July 27, 2015
Hello
  • 1

C++

107,151 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator