Liberty BASIC Help Online

PUT #h, n
 
PUT #handle, n
 
Description:
PUT is used after a random access file is opened to place a record of information (see FIELD) into the file #handle at the record numbered n.  For example:
 
 
' open a random access file
  open "custdata.001" for random as #cust len = 70  
 
  field #cust, 20 as name$, 20 as street$, 15 as city$,_
               2 as state$, 10 as zip$, 3 as age
 
  ' enter data into customer variables
  input name$
  .
  .
  ' put the data into record 1
  put #cust, 1
 
  close #cust
  end
 
 
Note:  See also GET, FIELD, Random Files
 
 
 
 


Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/