# JSFILE

Syntax:

JSFILE :CR filename

JSFILE [id] :CR filename

where id is an optional file handle, :CR CReates the file.

JSFILE [id] :TX text

Writes text line(s) containing text to the file specified by id.

JSFILE [id] :CR-

Closes the file specified by filename.

The [id] file handle is not required for a single file. To create

multiple files, use a unique file handle for each [id].

Version Ref: 4.8 (not included in filePro Lite)

Description:

JSFILE Creates sequential ASCII files.

Example: Creates file1.txt and file2.txt that says hello and filename.

If:

Then: fa="file1.txt"; fb="file2.txt"

If:

Then: ta="hello"

If:

Then: JSFILE "1" :CR fa

If:

Then: JSFILE "2" :CR fb

If:

Then: JSFILE "1" :TX ta < fa; JSFILE "2" :TX "Hello" < fb

If:

Then: JSFILE "1" :CR- ; JSFILE "2" :CR-