|
Re: coursework, help please.
well I know in C++ you can do
while(getline << eventitle)// isnt it great that streams can return a bool
{
//other stuff.
}
I have know idea how to do a End of file test for . . what ever language your useing. but if I were you I would read the documentation on the read(), and readfile functions.
edit ok Ive read up on this . .
if the readfile function has an error(like the file has no more info in it) it will return a 0
so I would suguest that you use that for your else(its not a fancy way of doing it but it will get it working)
as for changeing the date to a string. . . thats something that you can figure out
__________________
Proud mentor of Team #1745 the P-51 Mustangs
If at first it doesn't work, use a hammer.
If that doesn't work, use a bigger hammer.
Last edited by Stuart : 12-04-2006 at 11:59.
|