Selectfile function – Multichannel Systems NeuroExplorer User Manual

Page 160

Advertising
background image

5.5.1.18. SelectFile Function

SelectFile Function


Opens File Open dialog and returns the path of the file selected in the dialog.

Syntax


string SelectFile()

Returns


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

Comments


None

Usage

NexScript

path = SelectFile()

% path can be empty if the user pressed Cancel in file dialog

if StrLength(path) > 0

% open file for reading

file = OpenFile(path, "r")

line = ""

% read the first line of the file

ReadLine(file, line)

Trace(line)

CloseFile(file)

end

See Also

Introduction to NexScript Programming

NexScript Function Categories

Page 158

Advertising