Question
Oct 12, 2013 at 6:37pm Oct 12, 2013 at 6:37pm UTC
Hello, I have one question.
If I read txt file in void function for example
1 2 3 4 5 6 7 8 9 10 11 12 13 14
void ReadFile(const char CD[Cmax]){
string name, something;
ifstream fd(CD);
fd >> name >> something
}
Void MakeSomething(.....){
**************
}
void DoSomethingWithFile){
*****Can i read this file again******
string name, something;
ifstream (fd, ios::app);
fd >> name >> something
}
Thanks
Oct 12, 2013 at 6:46pm Oct 12, 2013 at 6:46pm UTC
You should be able to read as many times as you want.
Oct 12, 2013 at 6:49pm Oct 12, 2013 at 6:49pm UTC
Thanks :) but if I wanna make changes there?
Last edited on Oct 12, 2013 at 6:50pm Oct 12, 2013 at 6:50pm UTC
Oct 12, 2013 at 6:52pm Oct 12, 2013 at 6:52pm UTC
You should be able to read and write to a fill as much as you want. It doesn't matter where you do it. I'm not sure exactly if this is what you are asking or what you are asking if you could be a little more clear please.
Topic archived. No new replies allowed.