Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>loc current file position</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
LOC                      Current File Position

 y = LOC(filenum)

    Returns the record number last read from or written to of a specified
    (open) file.

     filenum    The number under which the file was OPENed.

   -------------------------------------------------------------------------

      Notes:    When a sequential file is opened, the first sector is
                automatically read, so LOC(filenum) for a newly opened
                sequential file returns 1. LOC(filenum) for a sequential
                file returns the current byte position divided by 128.

                If filenum specifies a binary file, LOC returns the
                current SEEK position.

                If filenum specifies a communications file, LOC returns
                the number of characters waiting in the communications
                buffer.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson