XForms: editing a file

Dick Middleton (dick@sqf.hp.com)
Tue, 14 Jul 1998 09:08:14 +0100

# To subscribers of the xforms list from Dick Middleton <dick@sqf.hp.com> :

> # To subscribers of the xforms list from Matt Post <manimal@bobo.newaygo.mi.us> :

> I need a way to load a file and present it to the user for editing,
> after which he can click on save and the edited contents will be saved.
> A browser doesn't work because I can't edit it, and I can't figure out
> 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
> function that I've missed to do this? Or is there another way that
> anyone can think of?

Maybe mmap would help. You can then just copy the visible bit of the file.

Dick

-------------------------------------------------------------------------------

Dick Middleton
Phone: +44 131-331 7530
Fax: +44 131-331 7443 ( )
email: dick@sqf.hp.com ( )
( )
( ) . ~ ~ ~ ~~ .
( ) _______
( ) |
. ~ ~ ~ ~~ . |
/O\
-------------------------------------( o )-------------------------------------
- I'd rather be soaring
_________________________________________________
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/