AnsweredAssumed Answered

vrf Strange effects

Question asked by lbill on Feb 10, 2004
> Has anyone tried to split a file into user
> defined sizes using VEE?

Nope.

> Any idea how file splitting programs (such as
> file-split, file chopper etc...) split files
> very quickly?

Yup.

> Is it possible to implement these in VEE?

Yup. Read the entire thing at once (very fast). Use a UInt8 array for the
destination. Then write out the chunk files directly from the array without
moving or re-reading anything. Like:

Read myFile size 100 bytes, write chunks of 20 bytes.

read all
write "myFile.chunk01" Data[00:19]
write "myFile.chunk02" Data[20:39]
write "myFile.chunk03" Data[40:59]
write "myFile.chunk04" Data[60:79]
write "myFile.chunk05" Data[80:99]

The only pain is generating the chunk names and array indecies, but you can
use some clever array trickery to do all that without looping.
-SHAWN-


---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
Send your favorite VEE example to "VRF-EXAMPLES@agilent.com" for possible inclusion in VEE 7.0!

Outcomes