A little help in opening a text file please...:)

  • 14 years ago
    Dear All,
    Please i need this little help from you guys,'
    the help is in either VBScript/ASP or Visual Basic 6
    no big difference
     
    i am trying to load about 75000 lines from a text file to the program or the page
    but it is not loading more than 7000 lines, and then it stops and says that it had reached the end of the file, which is not true
    iam using FSO for this procedure
    those are my codes, please tell me where iam mistaken, or is there a better way for it????
     
    set fso=Server.CreateObject("Scripting.FileSystemObject")
    set fs=fso.OpenTextFile(Server.MapPath("ips.csv"))
    rall=
    Response.Write  fs.readall
    do until fs.AtEndOfStream=true
     response.write fs.ReadLine
    loop







     
     
    please please please help me, its very urgent
     
     
    Thanx in advance
     
     
    Best Regards
    \n\n\n",0] ); D(["ce"]); //-->

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Java is to JavaScript what Car is to Carpet.” - Chris Heilmann