Switch to full style
ASP/ASP.net examples
Post a reply

display the content of text file

Sun Mar 27, 2011 11:01 pm

This snippet read the content of file and write to screen .
Code:
<% 
Set objfolderStream
= CreateObject("Scripting.FileSystemObject") 
Set objfileStream
= objfolderStream.OpenTextFile("c:\codemiles.txt") 
allContent
= objfileStream.ReadAll
objfileStream
.close 
// clear objects
Set objfileStream=nothing 
Set objfolderStream
=nothing

response
.write(allContent) 
%> 




Post a reply
  Related Posts  to : display the content of text file
 overriding the direction of text within body content     -  
 read php file in asp and display it as html     -  
 Read XML file content using SAX and writing its as SQL     -  
 Load file and update content using AJAX and JQuery     -  
 Read file content to StringBuffer String object     -  
 Import text file with ASP.NET     -  
 Create a text file     -  
 Reading and Writing To text file     -  
 Search records from text file     -  
 Read Arabic text from file     -  

Topic Tags

ASP Files and I/O