I have in my programm three files: SCANNER.CPP,tst _scanner.cpp and scaner.h
i need read and write from text file which is glopal. how i can do it?
the strange things if i put all programm in one file it is working as good.but whene i use three files it is have error(not define the glopal text file in some file).
i am using many wayes to solve this probleme(i define the glopal text file out of main or enter and enter of getT()...
User Profile
Collapse
-
Read/write C++ glopal text files problem
-
pleeeeez i need help for reading&writing files/C++
helo......
i need help for how to read/write file in C++
i use fstream but i wont to open file one time for all functions(file is glopal)
and i wont the file be open in the constructor of my class.
where can i declerd this lines
ftream myfile;
myfile.open(... ..,.......);
is it in main or in class?
i have decler in main function but ather function be ERROR.
thanks for all.
No activity results to display
Show More