Ler Arquivo Texto
C:\WinDev 19\Examples\Training\WD Text Files\Exe
FilName is string = "D:\aleva\amarildo.txt" // Name of the test file
TEXTFIL="" // Text control where the file content will be displayed
// Read the file whose name is stored in the "FilName" variable
TEXTFIL = fLoadText(FilName)
IF ErrorOccurred THEN
// Indicate the error and the reason for this error
Error(StringBuild("An error occurred while reading: %1", FilName),ErrorInfo())
RETURN
END
Nenhum comentário:
Postar um comentário