Re: XForms: editing a file

Lothar Esser (esser@chop.swmed.edu)
Tue, 14 Jul 1998 12:25:20 -0500 (CDT)

# To subscribers of the xforms list from Lothar Esser <esser@chop.swmed.edu> :

Dear Matt,

> how to load a file into a multilined input, except by reading the entire
> contents of the file into a variable large enough to contain it, then
> using fl_set_input(obj, super_huge_variable). Is their a standard

Well, I don't know whether there is a standard way, but what you
describe is exactly what works for me. I have written a function similar
in a way to fl_load_browser, (I called it my_fl_load_input) that reads a
file line by line each time dynamically allocating space and eventually
calling fl_set_input( obj, input) and free(input). But I agree with you
it would be nice to have fl_load_input that works like fl_load_browser. Or
am I missing something here too ?

Lothar

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/