Hi all. I'm having a little probleme reading txt information. Could someone please help me? I want for ifstream to read information from example C:\Test.txt and save it to directory D:\OkTest.txt ? Pleaaase help, this is the source I am using, correct it to the way it should be.
#include<string>
#include<fstream>
using namespace std;
void main(){
ifstream read("Test.txt"
ofstream write("OkTest.txt"
string s;
while (getline(read,s))
write<<s<<endl;
}
Thanks (^.^)>;;
#include<string>
#include<fstream>
using namespace std;
void main(){
ifstream read("Test.txt"
ofstream write("OkTest.txt"
string s;
while (getline(read,s))
write<<s<<endl;
}
Thanks (^.^)>;;