FSRead problem
16-Mar-94 08:24:58
Sb: #163433-FSRead problem
Fm: Andre Coulombe 73423,453
To: Steve Wagy 70471,1640
Steve,
Something like this will do whast you want (I did not put error checking for
clarity)
short number;
Str255 numberString;
short numBytes;
numBytes = 2; // I want to read a short
FSRead (ref, &numBytes, &number); // read the file
NumToString(number, numberString); // Convert an integer to a Pascal string
DrawString(numberString);
Hope this help!
Andre
(I just noticed that Bill had answered your question…Here is mine anayway!