This example demonstrates the use of file splitter.This example shows how to split large ZIP, RAR and 7z archive file into smaller pieces and then join them back again. This is useful when the data to be stored is large for the storage media and the data needs to be split for ease of storage. The example uses binary read/write function to split the files.
To split ZIP/RAR/7z files into user defined volumes and combine them back to the original file. This is equivalent to other file splitting/joining programs.
For File Splitter VI:
1. Choose the file (ZIP/RAR/7z) you want to split
2. Define the Split Size in kB
3. Run the code
4. The files would be split into files having size defined by Split Size(kB)
in the root directory of the file
5. Use Joiner.vi to join the files
For File Joiner VI:
1. Enter all the files to be joined in "Files to join" array control
2. Run the VI
3. A pop-up will ask you where and by what name to save the file as. Enter the file
name along with the extension of the file
4. Click OK to save the joined file
5. Make sure that the file extension is the same as that of the original file which was split
using File Splitter.vi
File Splitter :
File Joiner:
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
this is really helpful while handling large files
Nice but when creating multiple files the sort used to stitch them together sorts like this 0, 1, 10, 11, 2, 3... Using OpenG code I added a 1 sec delay after creating each smaller file in the splitter vi, then replaced the sort array function in the joiner vi with a sub vi which I cannot show a screen shot of for some reason.
Thanks for the comment....fix has been uploaded now!
MrPSC, thanks for your comment!