Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~159 People Reached
Favorite Forums
Favorite Tags
c++ x 3
Member Avatar for Trustify

I don't know what I'm doing wrong but I open my filed correctly but it doesn't display the contents in the file. Please help. [CODE]#include <iostream> #include <fstream> using namespace std; int main() { const int SIZE = 81; char input[SIZE]; fstream dataFile; dataFile.open("info.txt", ios::in); dataFile.getline(input,SIZE); system("pause"); return 0; }[/CODE]

Member Avatar for Trustify
0
159