Subj : Re: File I/O To : borland.public.cpp.borlandcpp From : Maya Date : Wed Dec 10 2003 02:06 pm Michael wrote: > Hi, > > Im having trouble trouble writing data to file, my code is below. However > when the program is compiled, it states that "ifstream" is an undefined > symbol, even though I have included "" at the top. > This is a char value not a std::string > char FileName[30] = "c:\myfile.dat"; << > char blank; > > ofstream dataOut; Why are you using .c_str if it is a char value? > dataOut.open(FileName.c_str(),ios_base::out); > > dataOut< dataOut< dataOut< > //dataOut.close(); > > > Any suggestions? > > > > > Thanks, > > Mike > > -- Jorge Escalante FYI http://www.astro.umd.edu/~marshall/abbrev.html E-Mail Policy http://www.vif.com/users/escalante/Email_Policy.html * You cannot exercise your power to a point of humiliation. - Jean Chretien * The media's the most powerful entity on earth. They have the power to make the innocent guilty and to make the guilty innocent, and that's power. - Malcom X * "Innocent until proven guilty", no... not in Canada!! .