Hello, I was wondering if pointers could be used with in file i/o. What I want to do with this is be able to have the ofstream in one function. Than use the pointer to show the ifstream in another function. So if the program says,"Enter your name", it will then save my name in that function where it asks me. Then if I go to a function, lets call it showlist(), then I should be able to see my name in that function. If you dont understand me, tell me :p
If it can't be done tell me what can be done to achieve what i want.