Click here to Skip to main content
15,919,132 members
Home / Discussions / C#
   

C#

 
GeneralRe: Auto Arrange desktop icons Pin
kevin_smoke20-Jul-05 23:37
kevin_smoke20-Jul-05 23:37 
GeneralRe: Auto Arrange desktop icons Pin
Sabry190521-Jul-05 2:23
Sabry190521-Jul-05 2:23 
GeneralRe: Auto Arrange desktop icons Pin
Alomgir Miah21-Jul-05 3:40
Alomgir Miah21-Jul-05 3:40 
GeneralRe: Auto Arrange desktop icons Pin
Alomgir Miah21-Jul-05 3:40
Alomgir Miah21-Jul-05 3:40 
GeneralSystem Time Pin
BrunoZP20-Jul-05 6:53
BrunoZP20-Jul-05 6:53 
GeneralDataGrid Question Pin
zaboboa20-Jul-05 6:29
zaboboa20-Jul-05 6:29 
GeneralRe: DataGrid Question Pin
Alomgir Miah20-Jul-05 12:31
Alomgir Miah20-Jul-05 12:31 
GeneralSerializing multiple objects to the same disk file Pin
cab320-Jul-05 6:18
cab320-Jul-05 6:18 
Hi,

I was hoping someone might help me with a with a serialization problem. I am trying to serialize multiple objects to the same disk file. Below is the code I am using to save and restore an individual object, however I really need to save many objects to disk.

Any thoughts and help would be very much appreciated.

<br />
static void saveFile()<br />
{<br />
IFormatter formatter = new BinaryFormatter();<br />
Stream stream = new FileStream("2005.pp1", FileMode.Create, FileAccess.Write, FileShare.None);<br />
formatter.Serialize(stream, PPeriod);<br />
stream.Close();<br />
}<br />
static void restoreFile()<br />
{<br />
IFormatter formatter = new BinaryFormatter();<br />
Stream stream = new FileStream("2005.pp1", FileMode.Open, FileAccess.Read, FileShare.Read);<br />
PayPeriodSerial = (PayPeriods) formatter.Deserialize(stream);<br />
stream.Close();<br />
}<br />


cab3
GeneralRe: Serializing multiple objects to the same disk file Pin
mav.northwind20-Jul-05 6:48
mav.northwind20-Jul-05 6:48 
GeneralRe: Serializing multiple objects to the same disk file Pin
cab320-Jul-05 7:57
cab320-Jul-05 7:57 
GeneralRemoting Issue Pin
Anonymous20-Jul-05 5:06
Anonymous20-Jul-05 5:06 
GeneralRe: Remoting Issue Pin
Anonymous20-Jul-05 9:15
Anonymous20-Jul-05 9:15 
GeneralRemoting - re-establishing the connection Pin
Judah Gabriel Himango20-Jul-05 4:31
sponsorJudah Gabriel Himango20-Jul-05 4:31 
GeneralRe: Remoting - re-establishing the connection Pin
Tom Larsen20-Jul-05 9:33
Tom Larsen20-Jul-05 9:33 
Generalcustom events Pin
rathishps20-Jul-05 4:02
rathishps20-Jul-05 4:02 
GeneralRe: custom events Pin
Judah Gabriel Himango20-Jul-05 4:22
sponsorJudah Gabriel Himango20-Jul-05 4:22 
GeneralHandling single pixels Pin
Yoyosh20-Jul-05 3:54
Yoyosh20-Jul-05 3:54 
GeneralRe: Handling single pixels Pin
Judah Gabriel Himango20-Jul-05 4:25
sponsorJudah Gabriel Himango20-Jul-05 4:25 
GeneralAccessing Remote Server File Pin
domyansumit20-Jul-05 3:52
domyansumit20-Jul-05 3:52 
Generalframe probrem in AxWebBrowser Pin
Anonymous20-Jul-05 1:18
Anonymous20-Jul-05 1:18 
GeneralRe: frame probrem in AxWebBrowser Pin
Judah Gabriel Himango20-Jul-05 4:27
sponsorJudah Gabriel Himango20-Jul-05 4:27 
GeneralRe: frame probrem in AxWebBrowser Pin
Anonymous20-Jul-05 4:58
Anonymous20-Jul-05 4:58 
GeneralRe: frame probrem in AxWebBrowser Pin
Judah Gabriel Himango20-Jul-05 5:18
sponsorJudah Gabriel Himango20-Jul-05 5:18 
GeneralRe: frame probrem in AxWebBrowser Pin
Anonymous20-Jul-05 5:37
Anonymous20-Jul-05 5:37 
Generalaccess remote ftp folder using shell extension Pin
Asif Rehman20-Jul-05 1:08
Asif Rehman20-Jul-05 1:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.