|
|
|
|
Parámetros de la Procedure utilizada por fReadLine WLanguage Procedure ("Callback") llamado por fReadLine para cada Line leído en el fichero. Este procedimiento puede ser local, global o interno.
FileNameAndPath is string
FileID is int
NumberLinesRead is int = 0
INTERNAL PROCÉDURE AnsiCallback(LineRead is ANSI string)
Trace("Callback | Line read: " + LineRead)
END
FileNameAndPath = "C:\Directory\AnsiFile.txt"
FileID = fOpen(FileNameAndPath, foAnsi)
IF FileID = -1 THEN
Error(ErrorInfo(errMessage))
ELSE
NumberLinesRead = fReadLine(FileID, AnsiCallback)
IF ErrorOccurred THEN
Error(ErrorInfo())
END
Trace("Number of lines read: " + NumberLinesRead)
fClose(FileID)
Trace("Read operation completed")
END
Sintaxis
<Result> = fReadLine_Callback(<Row read>)
<Result>: booleano - True si se leyó el Line ,
- False en caso contrario.
<Row read>: Cadena de caracteres Contenido de la Line leída en el fichero.
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|