HB_FInfo()
Retrieves status information about the currently selected text file
Syntax
HB_Finfo() --> aInfo
Return
HB_FInfo() returns a one dimensional array with six elements, holding information about the currently selected text file
Description
File information array :
Element Description ------- --------------------------------- 1 Currently selected text file area 2 Line count according to HB_FLastRec() 3 Current line according to HB_FRecno() 4 Position of file pointer 5 File size in bytes 6 End-of-file flag according to HB_FEof()
Example
HB_FUse( "test.txt" ) aTFInfo := HB_FInfo() ? 'Work area # : ', aTFInfo[ 1 ] ? 'Line count : ', aTFInfo[ 2 ] ? 'Curr. Rec # : ', aTFInfo[ 3 ] ? 'File pointer : ', aTFInfo[ 4 ] ? 'File size : ', aTFInfo[ 5 ], 'bytes' ? 'End of file : ', aTFInfo[ 6 ]
Seealso
HB_FAtEOF(), HB_FEof(), HB_FGoBottom(), HB_FGoto(), HB_FGoTop(), HB_FLastRec(), HB_FReadAndSkip(), HB_FreadLN(), HB_FRecno(), HB_FSelect(), HB_FSkip(), HB_FUse()