Open, Read and Create Files with ASP
Advertisements
| Top Tutorials | New Tutorials | Submit | Login | Register |
Tutorial Detail
Open, Read and Create Files with ASP
This tutorial explains opening, reading and creating files using example codes. Up to 6 examples are used.http://www.asptutorial.info/learn/OpenReadCreate-files.asp
Total Hits: 4735
Total Votes: 36 votes
Category: ASP/File Manipulation
Submitted on: 2008-03-06 11:26:15
Submitted By: Devesh Khanna
Description:
This one will be the basic code we need to open a text file:<%
Set fs = CreateObject("Scripting.FileSystemObject")
Set wfile = fs.OpenTextFile("c:\Mydir\myfile.txt")
filecontent = wfile.ReadAll
wfile.close
Set wfile=nothing
Set fs=nothing
response.write(filecontent)
%> More detail...
Rating Detail
| Stars | Percentage | Total Vote |
|---|---|---|
![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() 16.67% |
6 |





16.67%

16.67%

16.67%

16.67%

16.67%