Forum Moderators: open
I have the following code that reads the content of data.txt and displays it.
I dont want to read the entire txt file. In the text file i have data stored in the following format:
&name1=NAME&email1=email@email.com&name2=NAME2&email2=email2@email.com
so the file goes on and on like that and the only thing different about each set of data is that each data has a a number. For example, if i wanted the name and email address for the first entry, i will look at the value for &name1= and &email1=
That is exactly what i want to do. I want to read the value of just &name1= and &email1= and then display it.
the code below displays everything.
<%
dim filesys, text, readfile, strLink
set filesys = CreateObject("Scripting.FileSystemObject")
set readfile = filesys.OpenTextFile("data.txt", 1, false)
strLink = readfile.ReadAll
readfile.close
Response.Write strLink
%>
any help would be appreciated.
thanx in advance