File read and write functions – Multichannel Systems NeuroExplorer User Manual

Page 142

Advertising
background image

5.5.1. File Read and Write Functions


The following file read and write functions are available in NexScript

Function

Description

GetFileCount

Returns the number of files that match the specified file filter.

GetFileName

Returns the file name for the specified index after GetFileCount()
was called.

OpenFile

Opens text file using the specified mode, returns file ID.

CloseFile

Closes the file.

ReadLine

Reads a line from the specified text file.

WriteLine

Writes a line of text to the specified file.

OpenDocument

Opens a data file with the specified path.

NewDocument

Opens a new document (data file) with the specified timestamp
frequency.

CloseDocument

Closes the specified document.

SaveDocument

Saves the specified document.

SaveDocumentAs

Saves the specified document in a file with the specified file
path.

SaveNumResults

Saves the numerical results to a text file with the specified name.

SaveNumSummary

Saves the summary of numerical results to a text file with the
specified name.

SaveAsTextFile

Saves the document in the text file with the specified file name.

MergeFiles

Merges the specified files, returns the reference to the merged
file.

ReadBinary

Reads binary value of a specified type.

FileSeek

Repositions file pointer by the specified offset.

SelectFile

Returns the path of the file selected in File Open dialog.

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 140

Advertising