Serialization of multiple file in one
-
I want to create a file with others file data in like FileName : C:\test.dat FileNames: - C:\ttt.dat + ttt.dat data - C:\tt.dat + tt.dat data ...... etc For the writing to the file i'm ok but my problem is when I want to open the C:\test.dat to read the data in and after I want to read each path stored in this file and read the data reliated to this path to recreate the file at the same place with the same data . Anybody know how make this I used : ArrayList (Path and File Data) BinaryFormatter (Serialize all the data (C:\test.dat)) StreamReader ( to read the data of each files I added to C:\test.dat) StreamWriter (to recreate each file with the reliated data) my error is under the StreamWriter. I used 2 foreach statement, one to read/rewrite the path and the other to read/rewrite the data. like this foreach(......) { ....... Create the StreamWriter with the reliated File Path foreach(.....) { Write the data to the reliated file ..... } } Thanks a lot in advance :-D :-D Jonathan Pouliot