![]() ![]() |
|
OSBREADReads an OS file from a file opened.
COMMAND SYNTAXOSBREAD Variable FROM FileVar AT ByteExpr LENGTH LengthExpr {ON ERROR Statements}
SYNTAX ELEMENTS
NOTESThe jBC OSBREAD command reads data from a file starting at a specified byte location (ByteExpr) for a certain length of bytes (LengthExpr), and assigns the data to a variable. OSBREAD performs an operating system block read on a UNIX or Windows NT file. jBC uses the ASCII 0 character (CHAR(0)) as a string-end delimiter. Therefore, ASCII 0 cannot be used in any string variable within jBC. OSBREAD converts CHAR(0) to CHAR(128) when reading a block of characters. jBC begins reading from the file at the offset specified by ByteExpr. After successful execution of OSBREAD against a file, the file pointer remains at the next byte after the data read. ReminderYou must open the file using the OSOPEN command before you use OSBREAD.
EXAMPLES
RELATED COMMANDSOSOPEN, OSCLOSE, OSBWRITE, OSREAD, OSWRITE, OSDELETE |