Sequential file access in C# [Net 1.1]

  • Thread starter nostradumbass77
  • Start date
N

nostradumbass77

I am building a custom utility application and need to read and write
structures to a disk file.

It was simple in Visual Basic using Types to define the structure and
then
using Put to write it to file / Get to read it.


Is there any component / class library developed for use with C# ?

Would appreciate any links to working examples out there ?

Thanks for any replies,
ND
 
M

Michael Nemtsev

Hello (e-mail address removed),

See BinaryFormatter Class in MSDN
http://msdn.microsoft.com/library/d...FormattersBinaryBinaryFormatterClassTopic.asp

It's exactly what u need
I am building a custom utility application and need to read and write
structures to a disk file.

It was simple in Visual Basic using Types to define the structure and
then
using Put to write it to file / Get to read it.
Is there any component / class library developed for use with C# ?

Would appreciate any links to working examples out there ?

Thanks for any replies, ND
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsch
 
N

nostradumbass77

Hi Michael.

Thanks! I will try this out and post here if I cannot get it to work
the way I need it.


Cheers,
ND
 
N

Nicholas Paldino [.NET/C# MVP]

If the consumption of these files is other .NET applications, then this
is fine. However, if the information needs to be consumed outside of .NET,
then this is not going to work at all. You will have to write the file out
yourself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top