简体   繁体   中英

Read/Write to/from PageFile

I use an embedded DB for two applications that one of them is Server and another one is client.The client side app. can send fetch data request to server side to retrieve data and show in a table (or sth else).Question is this: How may I save(write) fetched data into pagefile and read that from it when needed(in java, Delphi or c#)?

Your data is fetched out from the server-side to client-side as in a JTable successfully.For saving the fetched data you have to read the cell data of table and save that data into a text file format in a particular directory. When you re-run your application you can easily pick your saved data from that directory.

You can use Shared Memory mechanism. It effectively allocates a chunk of memory in the page file and allows inter-process sharing.

Note: since you specified Delphi and C# tags, I assume you have access to WinAPI functions, such as CreateFileMapping and MapViewOfFile .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM