im trying to read some text from a file it compiles witn no errors but it doesnt print out whats in the txt file
heres my code
Code:#include <iostream> #include <fstream> using namespace std; int main() { char data [256]; cout<<"opening file..."<<endl; ifstream open_file ("new.txt", ios::app); open_file>>data; cout<< data <<endl; cin.get(); }



LinkBack URL
About LinkBacks


