11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

OSOPEN<br />

Syntax<br />

OSOPEN filename [READONLY | WRITEONLY] TO file.var [NODELAY]<br />

[ON ERROR statements] {THEN | ELSE} statements [END]<br />

Description<br />

The <strong>UniBasic</strong> OSOPEN command opens a sequential file that does not use<br />

CHAR(10) as the line delimiter.<br />

Read/write access mode is the default. Specify this access mode by omitting<br />

READONLY and WRITEONLY.<br />

Tip: After opening a sequential file with OSOPEN, use OSBREAD to read a block of<br />

data from the file, or OSBWRITE to write a block of data to the file. You also can use<br />

READSEQ to read a record from the file, or WRITESEQ or WRITESEQF to write a<br />

record to the file, if the file is not a named pipe. (READSEQ, WRITESEQ, and<br />

WRITESEQF are line-oriented commands that use CHAR(10) as the line delimiter.)<br />

Note: On UniData for Windows Platforms only: When you use OSOPEN, UniData<br />

uses the open function to open files in binary mode, but does not convert NEWLINE<br />

[CHAR(10)] delimiters to CARRIAGE RETURN–NEWLINE pairs [CHAR(13) and<br />

CHAR(10)] as the OPENSEQ command does.<br />

OSOPEN 1-558

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!