Guest_imported
New member
- Jan 1, 1970
- 0
Hi all, sorry i am realatively new, to the asp world, but can do some pretty good stuff, i am in the middle of creating myself an accounting system,
i have created a simple script to open a txt file, and read the contents, then print the line on the screen, now, the line appears like
9 2001 718 0 72 10651 11 31 718 15
each number corresponds to a different item, the script i have is as follows
****************************************************
<%
set filesy = createobject("scripting.filesystemobject"
set txtfile = filesy.Opentextfile("I:/webalizer/" & name & "/webalizer.hist",1, 0)
Do
line = txtfile.Readline
%>
<% =line %>
<BR>
<% line="" %>
<%
Loop until txtfile.atEndofstream
txtfile.close %>
*******************************************************
Now i want to save these results into a database, as single fields, and yea you got it it is a webalizer file, lol
i have tried
allsorts, but cannot seem to get the file to split into different catagories.
can someone please tell me what im doing wrong....
If possible provide the code for the line that is needed, and also provide the variables, to print the information on the screen... For example
<% =test %>
or
<% =script.test %>
or
whatever
thanks
i have created a simple script to open a txt file, and read the contents, then print the line on the screen, now, the line appears like
9 2001 718 0 72 10651 11 31 718 15
each number corresponds to a different item, the script i have is as follows
****************************************************
<%
set filesy = createobject("scripting.filesystemobject"
set txtfile = filesy.Opentextfile("I:/webalizer/" & name & "/webalizer.hist",1, 0)
Do
line = txtfile.Readline
%>
<% =line %>
<BR>
<% line="" %>
<%
Loop until txtfile.atEndofstream
txtfile.close %>
*******************************************************
Now i want to save these results into a database, as single fields, and yea you got it it is a webalizer file, lol
i have tried
allsorts, but cannot seem to get the file to split into different catagories.
can someone please tell me what im doing wrong....
If possible provide the code for the line that is needed, and also provide the variables, to print the information on the screen... For example
<% =test %>
or
<% =script.test %>
or
whatever
thanks