Closefile function – Multichannel Systems NeuroExplorer User Manual

Page 146

Advertising
background image

5.5.1.4. CloseFile Function

CloseFile Function


Closes the specified file.

Syntax


CloseFile(fileID)

Parameters

Parameter

Type

Description

fileID

double

File ID received from OpenFile function.

Returns


None

Comments


None

Usage

NexScript

% open a file in read mode

file = OpenFile("C:\parameters.txt", "r")

% read all the lines in the file and print them

if file > 0

line = " " % make line a string variable

while ReadLine(file, line) > 0

Trace(line)

end

CloseFile(file)

end

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 144

Advertising