G
gyoder
what is the prefered method of storing a dataset to a non-database file.
perhaps a binary file?
thanks
perhaps a binary file?
thanks
what is the prefered method of storing a dataset to a non-database file.
perhaps a binary file?
The CSV file (comma separated values) format is convenient and widely
recognized. In general, it is a flat text file, one record per line,
with values separated by commas and strings enclosed in quotes. See
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm#FileFormat
for more details.
Many databases can import these files directly with no further effort
on your part except to make sure that the fields in the file
correspond to the columns in the database.
(I have taken the liberty of "correcting" your top-posting becausei really have no need to import the data into a database. i want to be able
to save/store it and reload it again along with other data. so the file
would contain data from the dataset and also other data.
Miha Markic said:Serialization is the way to go. Either XML or binary (assuming you are on
.net 2.0). There is also DataSet.WriteXml/ReadXml pair you might find
convenient.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
gyoder said:what is the prefered method of storing a dataset to a non-database file.
perhaps a binary file?
thanks
gyoder said:Could you please expand upon "serialization". Perhaps binanry. Im on .net
2.0.
Thanks
Miha Markic said:Serialization is the way to go. Either XML or binary (assuming you are on
.net 2.0). There is also DataSet.WriteXml/ReadXml pair you might find
convenient.
--
Miha Markic [MVP C#, INETA Country Leader for Slovenia]
RightHand .NET consulting & development www.rthand.com
Blog: http://cs.rthand.com/blogs/blog_with_righthand/
gyoder said:what is the prefered method of storing a dataset to a non-database file.
perhaps a binary file?
thanks