Click here to Skip to main content
16,020,186 members
Home / Discussions / C#
   

C#

 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
Christian Graus12-Jun-08 9:47
protectorChristian Graus12-Jun-08 9:47 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
carbon_golem12-Jun-08 8:59
carbon_golem12-Jun-08 8:59 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
bigchump12-Jun-08 9:55
bigchump12-Jun-08 9:55 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
MaxRelaxman12-Jun-08 11:03
MaxRelaxman12-Jun-08 11:03 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
bigchump12-Jun-08 12:13
bigchump12-Jun-08 12:13 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
carbon_golem12-Jun-08 11:31
carbon_golem12-Jun-08 11:31 
Generali Pin
bigchump12-Jun-08 12:31
bigchump12-Jun-08 12:31 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
bigchump12-Jun-08 12:53
bigchump12-Jun-08 12:53 
"If you posted the code that's loading the data from the binary file, it may be useful."
Here's the code but the problem is not loading data but the SIZE of the file that is created.

public void DeSerializeNow()
{
header c1=new header(); //change to header - horse - results
horse[] c2=new horse[29];
Stream s=File.Open(@"C:\baduga\manure.tmp",FileMode.Open);
BinaryFormatter b=new BinaryFormatter();
while(true)
{
try
{
c1=(header)b.Deserialize(s);
label1.Text+=c1.track+" "+c1.poly+" "+c1.entries+" "+c1.par2f+" "+c1.par4f+" "+c1.par6f+" "+c1.parspeed+"\n";
for(int y=0;y<c1.entries;y++)
{
c2[y]=(horse)b.Deserialize(s);
label1.Text+=c2[y].post+",";
}
label1.Text+="\n";
}
catch
{
s.Close();
break;
}
}
}
Note the label stuff is just for debugging - it ain't used in real life...
thanx
bigchump
QuestionRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
Michael Schubert12-Jun-08 20:47
Michael Schubert12-Jun-08 20:47 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
#realJSOP12-Jun-08 10:52
professional#realJSOP12-Jun-08 10:52 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
bigchump12-Jun-08 12:37
bigchump12-Jun-08 12:37 
AnswerRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
Simon P Stevens12-Jun-08 22:01
Simon P Stevens12-Jun-08 22:01 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
bigchump13-Jun-08 5:33
bigchump13-Jun-08 5:33 
GeneralRe: AMATEUR PROGRAMMER NEEDS HELP WITH SERIALIZATION Pin
Simon P Stevens15-Jun-08 23:34
Simon P Stevens15-Jun-08 23:34 
QuestionWebservice question Pin
johland12-Jun-08 5:42
johland12-Jun-08 5:42 
AnswerRe: Webservice question Pin
Christian Graus12-Jun-08 6:05
protectorChristian Graus12-Jun-08 6:05 
GeneralRe: Webservice question Pin
johland12-Jun-08 6:37
johland12-Jun-08 6:37 
GeneralRe: Webservice question Pin
Christian Graus12-Jun-08 6:40
protectorChristian Graus12-Jun-08 6:40 
AnswerRe: Webservice question Pin
Christian Graus12-Jun-08 6:36
protectorChristian Graus12-Jun-08 6:36 
GeneralRe: Webservice question Pin
johland12-Jun-08 7:09
johland12-Jun-08 7:09 
GeneralRe: Webservice question Pin
Christian Graus12-Jun-08 7:26
protectorChristian Graus12-Jun-08 7:26 
GeneralRe: Webservice question Pin
johland12-Jun-08 10:02
johland12-Jun-08 10:02 
QuestionHow to find some value in HashTable ? Pin
Yanshof12-Jun-08 5:08
Yanshof12-Jun-08 5:08 
AnswerRe: How to find some value in HashTable ? PinPopular
Christian Graus12-Jun-08 5:11
protectorChristian Graus12-Jun-08 5:11 
AnswerRe: How to find some value in HashTable ? Pin
Brady Kelly12-Jun-08 5:38
Brady Kelly12-Jun-08 5:38 

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.