Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_components thread: Creating and inserting contents into a flat text file


Message #1 by "Mallikarjuna" <mallikarjuna_j@h...> on Fri, 5 May 2000 7:3:12
<%@ language="VBScript"%>

<!-- Server-side with an OBJECT element -->



<%OBJECT RUNAT="SERVER" SCOPE="PAGE" ID="objFSO"

	PROGID="Scripting.FileSystemObject">

</object%>



Dim objMyFSO, strtxtarea

Set objMyFSO = Server.CreateObject("Scripting.FileSystemObject")

filenam = "resume/" & t1 & ".txt"

set objTStream = objFSO.CreateTextFile(filenam, True)

set objTStream = objFSO.OpenTextFile(filenam, ForWriting, True)

strtxtarea = response.write t1

response.write t2

Response.write s1

objTStream.close



________________________________________________________________



This is a ASP page where contents are coming from

the HTML Page where the controls are placed and

when i click the submit button the flat text file

has to be created in a directory which by default is

created already and the file has to have the contents

of the following three controls



1. name (text box control)

2. mailID (text box control)

3. Resume pasting area (textarea control)



Here t1 is textbox control content

I want it on the content as flat text file and 

the content has to be added into the flat file


  Return to Index