This article describes several ways to persist objects other than databases. Has a good reference value, followed by a small series to look at it. Object persistence is a technique for saving objects in memory to a storage device that can be permanently saved, such as a disk. This article describes several ways to persist objects other than databases. As follows: Save as text: The Memory object is saved in a byte stream to the text. Serialize to XML: objects are stored in XML format. Serialize to JSON: Serializes the object into a JSON object and then stores it. Serialize to binary: The object is serialized into a binary byte stream saved to the file. Knowledge points involved: serialization and deserialization of a file stream read and write ListView check box, and arrange horizontally as shown in the "main function is to save the information entered by the user into various formats and read from each document": Save and read the text document code as follows:///<summary >///Save As text///</summary
1. C # object Persistence graphic Code
Summary: This article describes several ways to persist objects in addition to databases. Have a good reference value, follow the small series together to see it
2. Python Pickle Module Data Object Persistence operation
Introduction: Often encountered in the Python program run to get some strings, lists, dictionaries and other data, want to save for a long time, easy to use later, rather than simply put in memory shutdown power loss data. The pickle module in the Python module is useful for converting objects into a format that can be transferred or stored.
3. Example of use of data object persistence enclosure pickle in Python
Introduction: This article mainly introduces the use of data object Persistence storage module Pickle in Python, focusing on the methods of object persistence and file reading in pickle module, and the friends who need to refer to the following
4. db4o
Introduction: Project Description: Db4o is an open-source, pure object-oriented database engine that is easy to use for both Java and. NET developers. At the same time, DB4O has been validated by third parties as an object-oriented database with excellent performance, and the goal of DB4O is to provide a powerful, embedded database engine that can