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


tchyper
May 26th, 2001, 05:18 PM
Hi,
I have 2 questions:
1)How can I save the text from textbox into a file but not as a .txt (can I specify the type of document). And,
2)If that file already exists can i overwrite it automatically without having to confirm?
thanks

phil m
May 26th, 2001, 05:25 PM
Yes
and
Yes

OK?

Phil

Aberf
May 26th, 2001, 06:49 PM
1.)

Open "C:\blah.hgh" for Append as #1
print #1, Text1.Text
Close #1



2.)

Kill "C:\blah.hgh"
Open "C:\blah.hgh" for Append as #1
print #1, Text1.Text
Close #1

phil m
May 26th, 2001, 08:18 PM
Can't you just use "output" instead of "append" and then you would't need to "kill" the file?

Phil