Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Limit of Reading Text file
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kolucoms6
Average Member

845 Posts

Posted - 01 June 2007 :  09:10:43  Show Profile
I have Uploaded 2 text files.

One file(F1.txt) is a small file is size hardly 34 kb and another(F2) of size 700 kb.

I can read F1 clearly and properly but F2 returns me some garbage values.

Like :

˙ţ1

Any Suggestions ?

Code Using :
***********************

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strURL = Server.MapPath(".") & "/lds/abs.txt"
Set objFile = objFSO.OpenTextFile(strURL)

Edited by - kolucoms6 on 01 June 2007 09:18:37

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 23 July 2007 :  12:15:43  Show Profile
What might be it is that since the second txt file is 700 Kb, it was probably too big to have
been created in Notepad (Ascii), therefor it will probably be created in something like Wordpad (Unicode), so possibly your code is expecting an Ascii file (like F1.txt) but instead gets an Unicode file (F2.txt) which would then cause troubles.

Greets, Dominic

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 24 July 2007 :  00:11:21  Show Profile
Yes, like ILLHILL said it's probably not plain text. A 700kb plain text file would be unusually large.

======
Doug G
======
Computer history and help at www.dougscode.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07