Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / ADO.NET / April 2006

Tip: Looking for answers? Try searching our database.

Save data table to binary file?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mtczx232@yahoo.com - 04 Apr 2006 07:55 GMT
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.
Miha Markic [MVP C#] - 04 Apr 2006 10:36 GMT
Which .net?
Both 1.x and 2.0 allowe you to serialize it to disk while the later is
better.

Signature

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

>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.
mtczx232@yahoo.com - 04 Apr 2006 11:27 GMT
Micha

NET framework 2.0

notice, I looking for append new records to disk, not save hole table
every time when i do save.
Miha Markic [MVP C#] - 04 Apr 2006 13:43 GMT
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.

Signature

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

> Micha
>
> NET framework 2.0
>
> notice, I looking for append new records to disk, not save hole table
> every time when i do save.
mtczx232@yahoo.com - 04 Apr 2006 16:08 GMT
OK, if i want to append new records to XML file, how I do that?
Miha Markic [MVP C#] - 04 Apr 2006 19:04 GMT
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.

Signature

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

> OK, if i want to append new records to XML file, how I do that?
mtczx232@yahoo.com - 05 Apr 2006 13:47 GMT
I not understand you, I asking for Code that Save new rows from
Datatable. I not have XML doc!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.