Opening data files

Function

Open a data file.

Syntax

Detailed Description

The OPEN statement opens a data file, creating a file with the specified name if the BHT does not already have that file.

filename must be in 8.3 format: 1 to 8 character for the base name and 1 to 3 characters for the file extension.

The file name can use alphabets, numerals, hyphens (-), and underbars (_), but the last two cannot appear at the beginning.
File names are not case sensitive.
The following file extensions are not allowed.
PD3,PD4,EX3,EX4,FN3,FN4,FLD

fileno can be any number from 1 to 16 not currently in use by another device file (bar code or communications). Use the same number to read data from, write data to, and close the data file.

Reading and writing data requires first opening the data file and then specifying its fields with a FIELD statement. →Defining data file fields

Example

Open file TESTDATA.DAT
  open "TESTDATA.DAT" as #1

(C)2002-2004 DENSO WAVE INCORPORATED All right reserved