Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving to a Text file- Help needed badly

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hello all. Anyway, my question for you all is about writing to a specific line , or after a specific charator(s) in a text file. I am currently writing a simple html generator, and there is a text box in which you will type the body of the html file. what i am wanting to do is this: when the document is saved, the program should automaticaly write:
<html>
<head>
</head>
<title>
on the form, there will be a place to enter the title of the web page, and that entry field will place the text contained in it after the title tag, then it will place </title> after that. then the program will automatically write:
<body>
to the html file. in the text box you wil type what you want the body to say. when you save, the program will insert:
</body>
at the end of the html file.
my question is... HOW DO I DO THIS??? [sig][/sig]
 
Use FileSystemObject COM DLL to have access to the file. Then you can read from this file and search for a specific string. [sig]<p>Mohammad Mehran Nikoo<br><a href=mailto:mohmehran@yahoo.com>mohmehran@yahoo.com</a><br>MCP with experience in VB, ASP, XML, SQL, COM[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top