Opening a file

In this section:

INTEGER FUNCTION OPEN_EDIT_FILE@(E,FILE)
INTEGER E(24)       ! EDIT_INFO block
CHARACTER(*) FILE  ! Name of file to open

This function discards any existing information in the edit buffer and reads the contents of the specified text file into the buffer. It returns 1 on success and zero if it was unable to open the file. To use this function successfully you are advised to specify a zero buffer size with %eb (Edit Box) to obtain a dynamically allocated buffer. Alternatively you can pass the window handle instead of the EDIT_INFO.

See also: EDIT_INFO

 

 

Basket
Empty
 
Copyright © 1999-2023 Silverfrost Limited