View Single Post
  #5   Spotlight this post!  
Unread 12-04-2006, 11:50
Stuart's Avatar
Stuart Stuart is offline
#include coffee.h
FRC #1745 (P51- Mustangs)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Dallas, TX
Posts: 414
Stuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond reputeStuart has a reputation beyond repute
Send a message via AIM to Stuart
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.