Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Artful Two for Clipper 5.0 - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

Syntax

READPREV( nFd, nStart, nStop, aArray )

Purpose

Read the previous n lines of a text file.

Arguments

     nFd -- DOS file handle, from a call to FOPEN() or FCREATE().

     nStart -- Start filling the array at this element number.

     nStop -- Stop filling the array at this element number.

     aArray -- Array to fill with the lines.

Setup

nFd is a valid DOS file handle. The file pointer has been set.

Example

     tmp = READPREV( fd, 1, FSEEK( fd, 0, 1 ), array )

Returns

The number of bytes read, or 0 if n lines cannot be read.

Side Effects

The file pointer is moved. The array is filled with the lines of text.

Artful Calls

None.

@SECTION = Clipper.lib Calls

_tread(), _tlseek(), _exmgrab(), _exmback(), _storc(), _parni(), _parnl(),
_retni(), _stpchr()

Source File

AA_READ.C

See Also: SCROLLFILE() READER() READPREV()

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