Question

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
You should be able to read as many times as you want.
Thanks :) but if I wanna make changes there?
Last edited on
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.