简体   繁体   中英

Reading input string from a text file in progress4gl

I have a .txt file having some text. I want to read this file and store it into a string. Is there available any function for that? Or how to do it ? please help

define variable s as longchar no-undo.

copy-lob from file "fileName.txt" to s.

DEF VAR ch-var AS CHARACTER NO-UNDO.

INPUT FROM VALUE(file-name).

REPEAT:

IMPORT UNFORMATTED ch-var.

END.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM