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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

writing from asp to a file

Status
Not open for further replies.

yogesh

Programmer
Jun 22, 2000
14
0
0
US
hello guys pls help me out, how to write to an file.
and pls also let me know how to print from asp
[sig][/sig]
 
Printing is easy
its just "Print"

Saving to a file on the Server side or the users side?
Certain aspects of WEB pages are restricted because then hackers could destroy your computer worse that viruses.
You can't read and write to a users PC.

Take a look at "Cookies" though, to save data to the client side.

is a good site for VBScript and .ASP


[sig]<p>DougP, MCP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.[/sig]
 
Here is one article about the File system object
Another tidbit I found on the filesystemobject
Counting Lines in a Text File

<%
whichfile = server.mappath(&quot;YOURFILENAME.txt&quot;)
Set fs = CreateObject(&quot;Scripting.FileSystemObject&quot;)
Set thisfile = fs.OpenTextFile(whichfile, 1, False)
counter = 0

Do While Not thisfile.AtEndOfStream
counter = counter + 1
thisline = thisfile.readline
loop

thisfile.Close
Set thisfile = Nothing
Set fs = Nothing
%>
start looking at and move from there and you will find just about anything you ever wanted to know about ASP and ASP+ [sig]<p>Steve Hagerman<br><a href=mailto:Admin@Advancedisp.com>Admin@Advancedisp.com</a><br><a href= ISP high speed internet access</a><br>I did it my way![/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top