The FileSplitter just read sequentially blocks of 8 Kb or 16 Kb from the file to split and writes it into the first part file "0.part" in a directory named the same filename as the file to split, created in the directory selected using "Browse" button until it reaches the desired end, then it creates an other one "1.part" and so on until it reaches the end of the file to split. For merging the FileSplitter reads every "part" file in the selected directory and merges them incrementally. It is now done asynchronously using threads, User can cancel any process (the File/Directory in progress of creation is deleted)
:: FSIn : FileStream for the file to split
:: FSout : FileStream for parts
:: PreDefinedCacheSize: Block size to read and write
:: void CleanUp() : closes
streams, restores the form appearance if a wrong entry was submitted
:: string FileName(string) : returns the file name from a path
:: bool Merger(string) : merges
the files in the path given in the string
:: bool Splitter(string1, string2, long_)
: Splits the file given in string1 into folder string2 in long_ chunks
:: void TheSplitter() : Method to
invoke The Splitter
:: void TheMerger() : Method to
invoke The Merger
![]() |
Lived with C over DOS, with ORACLE 8i /
developper 6, now with VCS & ASP.net plz visit http://www.equipement.gov.ma/DSTRPermis4.0 |