ansi_filein = "H:\test_file.dat"
rc = open_file()
temp = CHARIN(ansi_filein, 1)
line = CHARIN(ansi_filein, , 72)
SAY '§§§'line'§§§'
temp = STREAM(ansi_filein, 'C', 'CLOSE')
temp = open_file(ansi_filein)
line = CHARIN(ansi_filein, , 72)
SAY '§§§'line'§§§'
RETURN 0
open_file:
DO
STREAM(ansi_filein, 'C', 'OPEN READ SHARED')
CATCH NOTREADY
temp = STREAM(ansi_filein, 'D')
RETURN '0001' || temp
END
total_bytes = STREAM(ansi_filein, "C", "QUERY SIZE")
RETURN 0 |