Connect with Peer Bloggers

Get your Bloggers ID and network with best bloggers around the world.

8

How to read and write an object in a textfile in C#

Czetsuya
czetsuya's tech ― Long time ago I've a requirement to read sms messages from device to be written in a text file. Before I learned to serialize an object, I was saving it in a file comma-delimited. That approach is working but sometimes it's a pain to keep track of what argument is in index x. So here's how I've written an object in c# to a text file. Some parts of the code are copied somewhere on the internet. Normally we write a list of object in a text file so I've created a model class, another class that[...]

Voted by 1 User



What would you say?

Be the first to comment on this blog post! Sign in or Create an account.