Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!mephisto!prism!gt4586c From: gt4586c@prism.gatech.EDU (WILLETT,THOMAS CARTER) Newsgroups: comp.sys.mac.programmer Subject: Help with FSRead Keywords: loading data files with FSRead Message-ID: <13963@hydra.gatech.EDU> Date: 21 Sep 90 15:15:19 GMT Organization: Georgia Institute of Technology Lines: 17 I would like to solicit some assistance in the use of FSRead. I have an application that needs to load data files which are text files full of numbers. I am currently using the pascal READLN to load the data one line at a time, and it is painfully slow. I have figured out that I can use FSRead to read huge chunks of data off the disk in one big swallow rather than a line at a time. My question is: how do i know how much memory to allowcate to the buffer into which the data is placed, and how do i get to the numbers which are lurking in the buffer, i.e. how do i go to the buffer and ask it to give me integers or reals or whatever so i can put them into an array? I would greatly appreciate any assistance. Thanks. -- thomas willett Georgia Institute of Technology, Atlanta gt4586c@prism.gatech.edu "Violence is the last refuge of the incompetent." - Salvor Hardin (Foundation)