Home All Groups Group Topic Archive Search About

Save data table to binary file?

Author
4 Apr 2006 6:55 AM
mtczx232
I have some project that use with DataTable like simple DB.
I need a solution for save the DataTable to binary file, with ability
to Append only new record.

I looking for code that Implement simple providor or save method that
do that.

Author
4 Apr 2006 9:36 AM
Miha Markic [MVP C#]
Which .net?
Both 1.x and 2.0 allowe you to serialize it to disk while the later is
better.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

<mtczx***@yahoo.com> wrote in message
Show quote
news:1144133719.240992.30600@i39g2000cwa.googlegroups.com...
>I have some project that use with DataTable like simple DB.
> I need a solution for save the DataTable to binary file, with ability
> to Append only new record.
>
> I looking for code that Implement simple providor or save method that
> do that.
>
Author
4 Apr 2006 10:27 AM
mtczx232
Micha

NET framework 2.0

notice, I looking for append new records to disk, not save hole table
every time when i do save.
Author
4 Apr 2006 12:43 PM
Miha Markic [MVP C#]
Then that is something different.
Perhaps if you describe broader view I might help you better.
Why do you need datatable in binary format on the disk? Did you consider
XML? It isn't binary but it will let you append.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/

<mtczx***@yahoo.com> wrote in message
Show quote
news:1144146438.215062.37950@v46g2000cwv.googlegroups.com...
> Micha
>
> NET framework 2.0
>
> notice, I looking for append new records to disk, not save hole table
> every time when i do save.
>
Author
4 Apr 2006 3:08 PM
mtczx232
OK, if i want to append new records to XML file, how I do that?
Author
4 Apr 2006 6:04 PM
Miha Markic [MVP C#]
Hi,

Maybe this thread might help you
http://tinyurl.com/myerc

Otherwise there is still "brute force" approach - open text file, move right
before the ending root node and start writting there.

--
Miha Markic [MVP C#]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/


<mtczx***@yahoo.com> wrote in message
Show quote
news:1144163318.318486.128670@e56g2000cwe.googlegroups.com...
> OK, if i want to append new records to XML file, how I do that?
>
Author
5 Apr 2006 12:47 PM
mtczx232
I not understand you, I asking for Code that Save new rows from
Datatable. I not have XML doc!

AddThis Social Bookmark Button