To view the file...
<cffile action="READ" file="c:\myrestricteddir\#form.filename#"
variable="filecontents">
<cfoutput>
<textarea name="filecontents">#filecontents#</textarea>
</cfoutput>
To save the file...
<cffile action="WRITE" file="c:\myrestricteddir\#form.filename#"
output="#form.filecontents#">
Each would have to be a separate file.
______________________________________________
Pete Freitag ([EMAIL PROTECTED])
CFDEV.COM / NETDesign Inc.
ColdFusion Developer Resources
http://www.cfdev.com/
-----Original Message-----
From: monika kon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 05, 2000 1:05 PM
To: CF-Talk
Subject: How to view textfiles
Hello everyone,
I have text files present in the directory.I have a
form which has a textfield and a submit button labeled
as "view".
I want if any one types the name of the textfield and
presses "view" button then should be able to view the
contents of the text file as well able to save it.
Please help.
Thanks in advance
Shally
__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.