|
Call SalFileOpen( FHND_FILEHANDLE, STR_FILENAME,
OF_Text | OF_Read )
Opens, re-opens, creates, or deletes a file.
Parameters
hFile Receive File Handle. The handle of the open
file.
strFileName String. The name of the file to open, create, delete, or test. nStyle Number. A constant that specifies the style in which to open the file. nStyle can be one or more styles combined using the bitwise OR (|) operator. Return Value
bOk is TRUE if the function succeeds and FALSE if it fails.
Example
Actions
!Open source and destination files.
If SalFileOpen ( fhSrcFile, strSrcFile, OF_Read )
If SalFileOpen ( fhDestFile, strDestFile, OF_Create | OF_ReadWrite )
...
See Also
SalFileClose
SalListFiles SalFileOpenExt Call SalFileRead( FHND_FILEHANDLE, STR_VARNAME, N_BYTES_TO_READ ) Reads a buffer of characters from an open file to a string . Parameters
hFile File Handle. The handle of the open
file.
strBuffer Receive String. The string to which the data is read. NBufferLength Number. The number of bytes to read. Return Value
nResult is the number of bytes read. On end of file, SalFileRead returns a
byte count less than the requested amount.
Example
Actions
! Position to the beginning of the file Call SalFileSeek ( fhInFile, nFilePos, FILE_SeekBegin ) Loop Set nCharsRead = SalFileRead ( fhInFile, strBuffer, nRecSize ) See Also
SalFileWrite
|
- [sqlwin] Ler ficheiro Orfeu Andrade
- RE: [sqlwin] Ler ficheiro Alexander B de Carvalho
- [sqlwin] Ler ficheiro Valdemiro Coimbra
- Re: [sqlwin] Ler ficheiro Marcos Fregol�o - UOL
- RE: [sqlwin] Ler ficheiro Santos, Ismael Ribeiro dos (Brazil)
- RE: [sqlwin] Ler ficheiro Julio Cesar Dalla Rosa - AlmapBBDO
- RE: [sqlwin] Ler ficheiro Valdemiro Coimbra
- RE: [sqlwin] Ler ficheiro Santos, Ismael Ribeiro dos (Brazil)
- RE: [sqlwin] Ler ficheiro Julio Cesar Dalla Rosa - AlmapBBDO
- RE: [sqlwin] Ler ficheiro Valdemiro Coimbra
