[comp.sys.mac.programmer] reading a numeric file in Think C

jkchan@lynx.cat.syr.edu (J. K. Chan) (04/17/91)

Date: Tue, 16-Apr-91 11:12:08 EDT

jkchan@lynx.cat.syr.edu (J. K. Chan) (04/17/91)

(Sorry about my last wrong message)
I used the standard dialog box to read in a file but the Toolbox returns
a pointer.  I tried to use the string scanf "sscanf" to read the string
pointer list but it won't update the string pointer "stringPtr":
          sscanf(stringPtr, "%lf ", &num[i]);
So, I need to move the pointer to the next blank.  But this is not efficeint
at all.  Is there a solution or even a faster way to read in a numeric
ASCII file and store it into a number array?
Please send email to the above address
Thanks in advance.
- Jim