User Profile

Collapse

Profile Sidebar

Collapse
lion
lion
Last Activity: Nov 22 '06, 04:52 AM
Joined: Nov 9 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lion
    started a topic Read/write C++ glopal text files problem
    in C

    Read/write C++ glopal text files problem

    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()...
    See more | Go to post

  • lion
    started a topic pleeeeez i need help for reading&writing files/C++
    in C

    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.
    See more | Go to post
No activity results to display
Show More
Working...