The FileSplitter
FreewareWeb.com


Sample image

Download TheFileSplitter
Download the Source Code
download Mass Image converter
Sample image 4 MassImageConverter

Counter

Introduction

Well, I was working simultaneously on a USBless NICless desktop and on a CDless laptop, and i needed the FXCop utility,which was in the desktop, for the laptop. the only possible way to do so, was to split it in the desktop, so as to copy its part to the laptop (none of them is connected to internet), and then merge them back. I went back some years earlier, when I was fond of Borland C & MS DOS, and I wrote it in C, I first tried an mp3 file in order to test if it works really, then passed to a packaged installer ( because it checks integrity of the file) finally I decided to rewrite it in CS...

Note

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

History

SomeOne once said that History is What U made some milliseconds earlier... and so history of humanBeings was built.

About eRRaTuM


Lived with C over DOS, with ORACLE 8i / developper 6, now with VCS & ASP.net

plz visit http://www.equipement.gov.ma/DSTRPermis4.0
Google
See who's visiting this page.
Hosted by www.Geocities.ws

1