I need to use the Deserializer without USING.
Below works the first time, but from then on I get the TickRecord full of
zeroes.
private void DisplayBtn_Click(object sender, EventArgs e)
{
string fileName = dbDirectory + @"\nAD20120101.dat";
FileStream fs = File.OpenRead(fileName);
TickRecord tr;
while (fs.CanRead)
{
tr = Serializer.Deserialize<TickRecord>(fs);
Console.WriteLine("> "+ tr.ToString());
}
}
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.