Darwin Help

Back to Index

ReadData

Function ReadData - read a formatted file

Calling Sequence  ReadData(filename,fmt)
Parameters
NameTypeDescription

filename stringname of file to be read
fmt stringa valid sscanf format
Return Type  list(list)
Synopsis ReadData opens and reads the file and scans each line with the format given. The result of the scan is stored in a list which is returned. Normally this will be a matrix (list of lists). If there are format errors, a message is printed and the process continues up to 100 errors.
See also FileStat,   MySql,   OpenReading,   ReadProgram,   ReadRawFile,   ReadRawLine,   SearchDelim