in C++.net for school our last program program 7 he gave us a sequential file.
so im trying to figure out in all of this how do i print a piece of data(could be string,double,int whatever) from the file out on the screen or at least see if im heading the right direction or not?
i suppose the part that REALLY gets me is how do i tell what is what when reading a file like how do i tell this is a number or a String. cause what i wrote up there should read from the file right? and the i could write to the file with writeline that part makes sense but having a hard time grasping telling the difference between the data types then putting them on screen for display?Code:IO::StreamReader *infile; IO::StreamWriter *outfile; infile = IO::File::OpenText("prgv-7.dat"); infile->ReadLine( ); outfile->WriteLine("YAY IM WRITING TO A FILE"); infile->Close( );
(will try and catch teacher at office tommorrow but would be good if i wasnt as lost as i am now. it seemed to make sense in class but went braindead at home) lol