Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Access method of binary file

A binary file and access method technology, applied in the field of binary file access, can solve the problems of slow data access speed and poor running stability, and achieve the effects of high stability and fast data access speed.

Active Publication Date: 2012-10-03
HENAN SPLENDOR SCI & TECH
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] This random access method is easy to understand and easy to implement, but there are problems of poor running stability and slow data access speed in actual implementation.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0012] The technical solutions of the present invention will be described in further detail below through specific implementation methods.

[0013] A method for accessing binary files, which utilizes an object-oriented programming method to encapsulate a DbFile.dll module, and realizes accessing binary files through the DbFile.dll module, including the following steps:

[0014] Step 1. Call the Create() function, formulate the file name, the maximum number of file records, the length of the file record, and create the file initialization file header information;

[0015] Step 2, call the Open () function, open the file, and access the file content;

[0016] Step 3. Call the AppendRecord() or ModifyRecord() function to append or modify the record data;

[0017] Step 4. Call the Close() function to close the file.

[0018] The main disadvantages of this method are as follows: 1. Once the record is stored in the file storage location, it cannot be adjusted dynamically and canno...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an access method of a binary file. According to the access method, a method of object-oriented programming is used for packaging a Dbfile.dll module, and the access of the binary file is achieved through the Dbfile.dll module. The access method includes step one, calling a Create () function, formulating a file name, file record maximum number and file record length, and creating file header information of initialization files; step two, calling an Open () function, opening the files, and visiting file contents; step three, calling an Append Record () or Modify Record () function and appending or modifying record data; and step four, calling a Close () function and closing the files. The access method of the binary file has the advantages of being simple, practical, high in stability and rapid in access speed of data.

Description

technical field [0001] The invention relates to a file access method, in particular to a binary file access method. Background technique [0002] Binary file access usually adopts a random access method: according to the record number, access each record at a fixed position to achieve random access, that is, the record number of each record determines the access position of the record; for example: first The record number of the first record is 1, and it is placed at position 1; the record number of the second record is 2, and it is placed at position 2; ..., and so on; to modify the second record, first calculate the record number based on the record number Store the location, and then directly adjust the built-in pointer to it for modification; add a new record, and store it in the corresponding location of the file according to its record number. [0003] This random access method is easy to understand and easy to implement, but there are problems of poor running stabili...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30
Inventor 赵春阳陈永涛
Owner HENAN SPLENDOR SCI & TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products