Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Editing files with FSO?? Please help!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Editing files with FSO?? Please help!

 Post Reply Post Reply
Author
FLATLINE View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2002
Location: Israel
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote FLATLINE Quote  Post ReplyReply Direct Link To This Post Topic: Editing files with FSO?? Please help!
    Posted: 19 August 2003 at 12:16pm

Hello! I would really appreciate it if anyone could post a code for editing files using FileSystemObject...

I have a kind of a configuration file that contains all kinds of important variables (it works like WWG's common.asp), and I want to be able to edit it online to change those variables.

Thanks in advance!

Visit my site: DarkGreen HQ
Back to Top
MorningZ View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 May 2002
Location: United States
Status: Offline
Points: 1793
Post Options Post Options   Thanks (0) Thanks(0)   Quote MorningZ Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2003 at 2:27pm

FSO Code Examples:
http://www.aspfaqs.com/aspfaqs/ShowCategory.asp?CatID=4

and for what you propose, FSO is totally not the correct way to go.... as its a major pain to do anything in the middle of the file......

maybe use an XML doc to hold the values you need to hold (or better yet a database)

Contribute to the working anarchy we fondly call the Internet
Back to Top
FLATLINE View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2002
Location: Israel
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote FLATLINE Quote  Post ReplyReply Direct Link To This Post Posted: 19 August 2003 at 3:09pm

What do you mean by XML? I'm not very experienced with that type of documents (I know only the basics of it).

P.S.
I already found a tutorial for FSO in this site: http://www.4guysfromrolla.com/webtech/faq/FileSystemObject/faq3.shtml

Visit my site: DarkGreen HQ
Back to Top
vshriniwasan View Drop Down
Groupie
Groupie
Avatar

Joined: 17 December 2001
Location: United States
Status: Offline
Points: 63
Post Options Post Options   Thanks (0) Thanks(0)   Quote vshriniwasan Quote  Post ReplyReply Direct Link To This Post Posted: 24 August 2003 at 1:31pm

You can use the text stream object to read the file and show it in a normal textarea box and re-update it. Is should be simple.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.