FREADA

Purpose:

Reads an ASCII (text) data file.

Syntax:

FREADA("filename", skip)

"filename"

-

A string, the name of the ASCII source file.

skip

-

Optional. An integer, the number of points to skip between samples. Defaults to 0, read all samples.

Returns:

A  series.

Example:

Consider a simple 10 point series:

 

writea("ten.dat", 1..10)

 

W1: fopen("ten.dat", "r");freada("ten.dat");fclose("ten.dat")

W2: fopen("ten.dat", "r");freada("ten.dat", 1);fclose("ten.dat")

W3: fopen("ten.dat", "r");freada("ten.dat", 2);fclose("ten.dat")

 

 

W1 == 1..10

W2 == {2, 4, 6, 8, 10}

W3 == {3, 6, 9}

Remarks:

File must be opened with FOPEN before using FREADA and should be closed with FCLOSE.

 

FREADA is like READA once FOPEN is used to open the file.

 

FREADA assumes multiple channels are interlaced.

See Also:

FCLOSE

FOPEN

FREADB

FWRITEA

READA

READTABLE

WRITEA