Thanks Joe - as simple as that.  Text encoding - I was copying and pasting 
small versions
of the file to create tests and thereby changing the text encoding from Unix to 
PC

AP


----- Original Message ----- From: "Joe Huber" <[EMAIL PROTECTED]>
To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
Sent: Friday, November 10, 2006 2:25 PM
Subject: Re: Short files OK - Long files KO


I doubt it's related to the length of the file, but some other difference.

- What about text encodings?

- Do you get an exception that bails out of this method for some reason? Make sure BreakOn Exceptions is enabled in the debugger to find out.

- Single step through the code to see what's going on.

- Try writing to a different file to better see what's going on. Is the original data not being over written at all or is the new data the same as the original data for some reason.

Hope this helps,
Joe


Hey all

Trying to achieve something relatively trivial here in RB 5.5. All I want to do is pull out the EndOfLine characters from a file. The below works fine for short files, but when I throw a 200Kbyte file at it, the result is no changes made. Any suggestions as to where I'm going wrong, a 64k limit
somewhere?

 dim f as folderitem
 dim s as binarystream
 dim a as string
 f=getopenfolderItem("????")
 s=f.openasbinaryFile(True)
 a=s.read(s.length)
 a=replaceall(a,endofline,"")
 s.length=0
 s.position=0
 s.flush
 s.write a
 s.close

Regards

AP

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to