Returns a series of bytes from a the specified file or a communication port opened with FOpenEx or FCreateEx until it encounters a carriage return.

FGetsEx(nFileHandle [, nMaxBytesToRead])

Parameters

nFileHandle

A file handle retrieved from FCreateEx, FOpenEx or a windows api function.

nMaxBytesToRead (optional)

default = 256

The maximum number of bytes to read.

Return Value

The data read.

See Also

Reference

AFHandlesEx
FChSizeEx
FCloseEx
FCreateEx
FEoFEx
FFlushEx
FLockFile
FLockFileEx
FOpenEx
FPutsEx
FReadEx
FSeekEx
FUnlockFile
FUnlockFileEx
FWriteEx

Used WinApi functions

ReadFile
SetFilePointer