A1METALHEAD
Programmer
ok, i have VC++ .net 2002 and i am trying to parse a text file. so far i cant use the way i used when i wrote this in C# with the streamreader. this is my code:
and whenever i try and run it, it outpuits a bunch of ones! i want it to acualr read the line.
thanks,
~metalhead
Code:
FileStream* fs = new FileStream("c:\\database.txt",FileMode::Open);
IO::StreamReader* sw = new StreamReader(fs);
String* fileIo = sw->ReadLine();
bool end = false;
while(end == false)
{
String* line = ;
cout<<line;
if( line == 0 ) end = true;
}
thanks,
~metalhead