Created
February 6, 2023 16:05
-
-
Save lievencardoen/fc2807fcbe09428e78b7d69ca342ec2c to your computer and use it in GitHub Desktop.
Read contents of a file. Will read the last line into ContentsFile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEFINE VARIABLE ContentsFile AS CHARACTER NO-UNDO. | |
INPUT FROM VALUE(SESSION:TEMP-DIRECTORY + "/test.txt":U). | |
DO WHILE TRUE ON ENDKEY UNDO, LEAVE: | |
IMPORT UNFORMATTED ContentsFile. | |
END. | |
INPUT CLOSE. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment