Splitting Files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

Is there any easy way to split a file into several smaller files and then
recompose it? Which namespace should I use?

Thanks for any help,

Tedmond
 
Should be pretty easy. All you need to do is use standard filestream
operations. Read through the source file and write out each X number of
bytes to a file named something like (file_0, file_1, etc). To put it back
together simply read through the file_# files in order appending them to a
new file. The namespace is System.IO
 
Back
Top