 |
|
 |
Gracias desde mx ironicamente es dificil encontra informacion de tecnologia practicamente vieja
|
|
|
|
 |
|
 |
Very helpful information.
Method 1 wasn't working for me.
Great to see that you had Method 2 listed.
Saved a lot of time.
Thanks!
|
|
|
|
 |
|
 |
Dear All,
I want that how to read 2nd Line or 3rd Line of text file ? Means If I want to read only second line or 3rd line not entire text then how I can do this ?
plaese help me in this case !!
|
|
|
|
 |
 | good  |  | Anonymous | 3:31 25 Oct '05 |
|
 |
I have used this code in myfile. Thanks a lot.
|
|
|
|
 |
|
 |
When i am reading the text file , my program can't read the text file
and it indicate an Permission denied
how to solve this
KaKaShi HaTaKe
|
|
|
|
 |
|
 |
how can i read the html file from remote location
Vishal Deshkar
Vishal Deshkar
Sr. Software Developer
Xtranet Technologies Pvt Ltd
Bhopal
|
|
|
|
 |
|
|
 |
|
 |
I am experiencing the same thing as one of the previous messages mentioned, that is, the processing gets stuck when accessing a text file using the FileSystemObject in ASP. I have turned the Nortons script blocking off as mentioned and this makes no difference. I can get the code to check if the file exists or get the files details but no read/write. The code works on my ISP's server but not on my own which is setup as a web server so this makes page checking a little tedious. Any ideas would be helpful???
|
|
|
|
 |
|
 |
I tried to use the objFS.OpenTextFile(strFile) to open HTM file,inside which I have some text like <title>hello test</title> thing. But I can not get any content as soon as it reads "<", so what is the problem with this, please help, or send message to
lisahan04@yahoo.com
many thanks,
|
|
|
|
 |
|
 |
If you attempted to display the character < on an HTML page, it wouldn't work since the character would be interpreted as part of an HTML tag. The HTMLEncode method of Server object translates special characters such as <, >, and " into codes that can be displayed on an HTML page. So use
Set TextStream = FSO.OpenTextFile(Filepath, ForReading, False, _
TristateUseDefault)
' Read file in one hit
Dim Contents
Contents = TextStream.ReadAll
Response.Write "<pre>" & Server.HTMLEncode(Contents) & _
"</pre><hr>"
TextStream.Close
Set TextStream = nothing
Good Luck
O. Zhelezov ognyanz@yahoo.com
-- modified at 5:36 Tuesday 24th April, 2007
|
|
|
|
 |
|
 |
Even Script blocking is switched to off while reading a text file in asp page get stuck.
|
|
|
|
 |
|
 |
Dim hs As New Hashtable()
Dim FILENAME As String = Server.MapPath("textfile2.txt")
Dim objStreamReader As StreamReader
objStreamReader = File.OpenText(FILENAME)
Dim contents As String = objStreamReader.ReadToEnd()
Dim s() As String = contents.Split("!")
Response.Write(s.Length())
For i = 0 To s.Length() - 2
Dim a() As String = s(i).Split(";")
hs.Add(a(0), a(1))
Next
objStreamReader.Close()
|
|
|
|
 |
|
 |
Is there a place in this code, or other code that enables you to read a txt file that might be across a network in a shared folder?
Tim
|
|
|
|
 |
|
 |
how can we read from text file only data we need that's mean only a part of file
second question is:
may we write a code such that reads the text file and search for its data in access database
for example
the text file is:
studentID
55555555
44444444
***********
and we want to search about all stdentIDs
I' m waiting your reply
thanks a lot
|
|
|
|
 |
|
 |
How can i search a given string in a text file.eg:- I have to pass all the <IMG> TAGS in a html file to a new text file using ASP
|
|
|
|
 |
|
 |
How to read binary file and write it as:
Response.BinaryWrite binFileData
Regards,
TomazZ
|
|
|
|
 |
|
 |
I am reading on a file for use on an HTML page. But the characters are being converted. Ideas?
|
|
|
|
 |
|
 |
i;ve uploaded to a friends server (ASP enabled) but when i use your code i get
Microsoft VBScript runtime error '800a0035'
File not found
/photos/templates/open_text.txt, line 26
which coresponds to a file named 'angie.txt' which IS THERE... is there a problem with his server, do i need to enable something? thanks heaps!
|
|
|
|
 |
|
 |
How does open_text.txt correspond to anything but open_text.txt ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
 |
|
 |
The file has to sit on your server not your personnal PC.
|
|
|
|
 |
|
 |
obviously, which it does. i've scrapped it and gone for SSI which have arrays now anyway. damn ASP!
|
|
|
|
 |
|
 |
i;ve uploaded to a friends server (ASP enabled) but when i use your code i get
Microsoft VBScript runtime error '800a0035'
File not found
/photos/templates/open_text.txt, line 26
which coresponds to a file named 'angie.txt' which IS THERE... is there a problem with his server, do i need to enable something? thanks heaps!
|
|
|
|
 |
|
 |
it should be open_text.asp, not .txt
|
|
|
|
 |
|
 |
I use this code:
<%
Dim fname,fs,out
Const ForReading = 1, ForWriting = 2, ForAppending = 3
Const TristateUseDefault = -2, TristateTrue = -1, TristateFalse = 0
fname=rsItem("Item_Desc")
Set fs=Server.CreateObject("Scripting.FileSystemObject")
Set out=fs.OpenTextFile(fname,ForReading,FALSE,FALSE)
Response.Write out.ReadAll
out.Close
%>
But when I run it my page stuck. I don't where is a problem.
PLEASE HELP I need it for my scoohl project.
|
|
|
|
 |
|
 |
If you run Norton antivirus or whatever, make sure Script Blocking is set to Off
|
|
|
|
 |