Page 280 - Learn to Program - Basic-256
P. 280

Chapter 18: Files – Storing Information For Later.                              Page 264



                           readline
                           readline()
                           readline(filenumber)


                           Return a string containing the contents of an open file up to the
                           end of the current line. If we are at the end of the file [
                           eof(filenumber) = true ] then this function will return the empty
                           string ("").

                           If filenumber is not specified then file number zero (0) will be
                           used.





                           size
                           size()
                           size(filenumber)


                           This function returns the length of an open file in bytes.


                           If filenumber is not specified then file number zero (0) will be
                           used.





                           close
                           close()
                           close filenumber
                           close(filenumber)



                           The close statement will complete any pending I/O to the file and
                           allow for another file to be opened with the same number.


                           If filenumber is not specified then file number zero (0) will be
                           used.





                                                       © 2019 James M. Reneau (CC BY-NC-SA 3.0 US)
   275   276   277   278   279   280   281   282   283   284   285