bas7advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
WRITE # Statement Details
  Syntax  Details  Example                 Contents  Index  Back
──────────────────────────────────────────────────────────────────────────────
The WRITE # statement writes data to a sequential file.
 
WRITE #filenumber%[,expressionlist]
 
Usage Notes
    ■ The WRITE # statement, unlike the PRINT # statement, inserts commas
      between items and quote marks around strings as they are written to
      the file. You do not have to put explicit delimiters in the list.
      A new line is inserted once the last item in the list has been written
      to the file.
    ■ If you attempt to write data to a sequential file restricted
      by a LOCK statement, BASIC generates the error message, "Permission
      denied" appears unless it is trapped by the program. All of BASIC's
      usual error-handling routines can trap and examine this error.