Click to See Complete Forum and Search --> : Adding to files


ant
August 30th, 2001, 06:52 PM
I have a text box. It has new properties. Using the file systemobject, It opens a file up. How do I make it add the text to that file without overrighting it??????

--Ant
--------------------------------------------------
Create rollover effects in no time!, visit:
http://members.fortunecity.com/ants12/rolloverwiz.html
Or email me:
christopherfolger@hotmail.com

berta
August 30th, 2001, 07:00 PM
append data in a file.


dim fs as new filesytemobject
dim ts as textstraem
set ts = fs.opentextfile("c:\myfile.txt",APPEND) 'APPEND->i don't remember enum ...
ts.put mytextbox 'something like that
ts.close




else


dim a as long
a=freefile
open "c:\myfile.txt" for append as #a
print #a, mytextbox.text
close #a




is it your problem?

<center>
<HR width=80%>
<img src='http://web.tiscali.it/bertaplanet/images/bertaplanet.gif'>
</center>