Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!rutgers!cmcl2!uupsi!rodan.acs.syr.edu!lynx.cat.syr.edu!jkchan From: jkchan@lynx.cat.syr.edu (J. K. Chan) Newsgroups: comp.sys.mac.programmer Subject: reading a numeric file in Think C Message-ID: <1991Apr16.112349.7327@rodan.acs.syr.edu> Date: 16 Apr 91 19:24:56 GMT Distribution: na Organization: Syracuse University Lines: 11 (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