Re: XForms: Problem with handle file ...

Steve Lamont (spl@szechuan.ucsd.edu)
Fri, 5 Nov 99 19:08:43 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I use Xform to write in text file from the input field on the form, after
> pressing the botton (SUBMIT DATA),everything goes well,
> BUT
> the data are not transfered IMMEDIATELY to the text file,and are still until
> the program is closed to be written in this text file.
> So,what shall we make to let the data be written in real time ?

I'm not exactly sure I understand the question but if you are writing
the text to the file using stream I/O (fprintf() or one of its ilk),
the data are being buffered. If you need to force the output to be
written immediately, either use the write() system call or, if you
wish to use stream I/O use fflush().

If I'm missing the point here, please post again, preferably with some
short example code which exhibits the problem.

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