[AccessD] File Slice/Splice

Stuart McLachlan stuart at lexacorp.com.pg
Wed May 26 18:05:59 CDT 2004


On 26 May 2004 at 8:16, Jürgen Welz wrote:

> I'm looking for some VBA to cut a file into chunks of a size that can be 
> emailed and then reassemble the full size at the destination.  I've been 
> playing with File I/O for a few hours, opening binary, reading into a string 
> or byte array and then Output to new files but it looks like I'm getting a 
> few additional bytes in the reconstituted file.  Presumably I'm adding some 
> delimiter to the file segments that mess up the file since it appears I'm 
> adding two bytes for each chunk plus another two overall.
> 

How are you outputting? If you use Print # or Write #, you will get a 
CRLF unless you end your statement with a semicolon.

If you use Put # it shouldn't add anything.





 
-- 
Lexacorp Ltd
http://www.lexacorp.com.pg
Information Technology Consultancy, Software Development,System Support.






More information about the AccessD mailing list