ADXIRS

Contents


adxirs contains the record separator used for the read or write of a sequential file.

 

Class, Type, and Dimension

[S]adxirs(2) Char

 

Examples

# Read of the users of the Adonix group from the file
   # UNIX /etc/passwd
   # for which the structure is LOGIN:PWD:UID:GID:NOM:HOM:SHELL
      Local Char LOGIN(15), PWD(15),UID(5),GID(5),NOM(80),HOM(80,SHELL(80)
    adxifs = ':'
    adxirs = chr$(10)
    Openi "/etc/passwd"
    Repeat
       Rdseq LOGIN,PWD,UID,GID,NOM,HOM,SHELL
           If [L]GID = num$([L]GROUP_ADONIX)
       ## after the process
      Until fstat <> 0
    Openi
       # Write of a file that includes one field per line, for which the
   # end of line is CR LF  (chr$(13)+chr$(10))
      adxifs = ""
    adxirs = chr$(13) + chr$(10)
    Openo "TRACE"
    For I = 1 to NB_LIG
       Wrseq LIGNE(I)
    Next I

 

Description and Comments

adxirs is a string of a maximum of two characters used in conjunction with the Rdseq and Wrseq instructions. These instructions read and write data in ASCII format, structured in fields and records:

- Rdseq performs a read until the end of the record, delimited by the sequence defined by adxirs.

- Wrseq writes a record that ends in the adxirs sequence.

adxdirs acknowledges chr$(10) as a default value.

 

Associated Errors

No associated error

 

Associated Keywords

ADXIFS  - RDSEQ - WRSEQ - OPENI - OPENO


CONTENTS


Copyright © Sage 1999 - 2007