Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 8th, 2005, 02:47 AM
ct ct is offline
Authorized User
 
Join Date: Aug 2005
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default input:output file

hello there..
 can somebody give me some sample code in managing input and output file in asp using vb. thank you
 
Old September 27th, 2005, 09:43 AM
Authorized User
 
Join Date: Sep 2005
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's some example:
Opening file for writing:
dim s as String="Test"
dim di as DirectoryInfo = new DriectoryInfo("c:\inetpub\wwwroot\vbnetweb\counter s")
fi = New FileInfo(di.FullName & "\pagecounter.txt")
fs. fi.OpenWrite

Write a line to a file:
dim sw as new StreamWriter(Server.MapPath(".") & "\text.txt",True)
sw.WriteLine("This is a test")
sw.Close()

Hope this helps. Tell if you need more info.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying DOCTYPE in input to the output xml mrame XSLT 3 July 31st, 2008 04:26 PM
XSLT with output very similar to input sindrit XSLT 2 July 30th, 2007 08:38 AM
Formating ListBox output to input into a file craigl Pro Visual Basic 2005 1 July 1st, 2007 08:02 AM
jsp - input/output - html?? tra77 JSP Basics 0 April 14th, 2006 04:35 AM
Multiple file input single file output.... jdm_mboy Biztalk 1 July 2nd, 2003 03:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.