By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

Sequential file access in C# [Net 1.1]

P: n/a
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

Oct 2 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hello no*************@yahoo.com,

See BinaryFormatter Class in MSDN
http://msdn.microsoft.com/library/de...ClassTopic.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 Nietzsche
Oct 2 '06 #2

P: n/a
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

Oct 2 '06 #3

P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Michael Nemtsev" <ne*****@msn.comwrote in message
news:17***************************@msnews.microsof t.com...
Hello no*************@yahoo.com,

See BinaryFormatter Class in MSDN
http://msdn.microsoft.com/library/de...ClassTopic.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 Nietzsche


Oct 2 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.