View Single Post
  #2   Spotlight this post!  
Unread 17-03-2004, 20:55
JimWright949's Avatar
JimWright949 JimWright949 is offline
The Owen Day of Seattle
AKA: Jim Wright
FRC #4542 (Titanium Talons)
Team Role: Mentor
 
Join Date: Sep 2003
Rookie Year: 2003
Location: Redmond, WA
Posts: 94
JimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to beholdJimWright949 is a splendid one to behold
Re: stdlib.h for Dashboard Program

fopen opens a file for writing (in your case). You will only need to perform this once. To write a string into a file I would use fprintf(data,"Hello world");.
At the end of your program use a fclose(data); to close the file and flush the buffers out.

In other words you need a fclose(data); command for every fopen command you have. An nether fopen nor fclose is writting any data to a file.

-Jim