CN114936387A - Text file reading method, text file writing method, electronic equipment and readable storage medium - Google Patents

Text file reading method, text file writing method, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114936387A
CN114936387A CN202210874931.9A CN202210874931A CN114936387A CN 114936387 A CN114936387 A CN 114936387A CN 202210874931 A CN202210874931 A CN 202210874931A CN 114936387 A CN114936387 A CN 114936387A
Authority
CN
China
Prior art keywords
file
temporary storage
data
storage file
writing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210874931.9A
Other languages
Chinese (zh)
Other versions
CN114936387B (en
Inventor
李奇峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Mingyuan Cloud Technology Co Ltd
Original Assignee
Shenzhen Mingyuan Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Mingyuan Cloud Technology Co Ltd filed Critical Shenzhen Mingyuan Cloud Technology Co Ltd
Priority to CN202210874931.9A priority Critical patent/CN114936387B/en
Publication of CN114936387A publication Critical patent/CN114936387A/en
Application granted granted Critical
Publication of CN114936387B publication Critical patent/CN114936387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Abstract

The application discloses a text file reading method, a writing method, electronic equipment and a readable storage medium, and relates to the technical field of computers, wherein the text file reading method comprises the following steps: receiving a data reading command, detecting whether a temporary storage file exists in a directory of a corresponding source file, if not, directly reading a new source file, if so, detecting whether complete data exists in the temporary storage file, if so, reading the temporary storage file, and if not, reading the original source file. The text file writing method comprises the steps of receiving a data writing command, newly building a temporary storage file under a directory of a source file, writing data and writing end mark information; and finally deleting the original source file. The method and the device solve the technical problem that the content integrity of the text file cannot be guaranteed in the prior art.

Description

Text file reading method, text file writing method, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a text file reading method, a text file writing method, an electronic device, and a storage medium.
Background
With the increasing application of information technology, the application of computer text files is also increasing, and most of the web pages and documents on the network are computer text files at present.
Because of the versatility and interchangeability of computer text files, they are widely used in the fields of the internet, city planning, and telecommunications. For computer text files, before being applied to other application fields, one integrity of the content of the computer text files needs to be guaranteed, and the complete text files can be applied to the related fields.
Disclosure of Invention
The present application mainly aims to provide a text file reading method, a text file writing method, an electronic device, and a storage medium, and aims to solve the technical problem that in the prior art, the content integrity of a text file cannot be guaranteed.
In order to achieve the above object, the present application provides a text file reading method, including:
when a data reading command is received, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command, wherein the temporary storage file is used for being rewritten into a new source file after data is written;
if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading the data of the new source file;
if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether complete written data exists in the temporary storage file or not;
if the written complete data exists, reading the data in the temporary storage file;
and if the written complete data does not exist, reading the data in the original source file.
Optionally, the step of detecting whether there is complete data written in the temporary storage file includes:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
Optionally, before the step of detecting whether a temporary storage file exists in a directory of a source file corresponding to the data read command when the data read command is received, the text file reading method further includes:
when detecting that data is written in the source file, newly building a temporary storage file under the directory of the source file;
writing the data into the temporary storage file;
when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
and deleting the original source file, and rewriting the temporary storage file into a new source file.
Optionally, the step of writing the data into the temporary storage file includes:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
In order to achieve the above object, the present application further provides a text file writing method, where the text file writing method includes:
when a data writing command is received, a temporary storage file is newly built under the directory of the source file;
writing the data into the temporary storage file;
when detecting that the data are all written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
and deleting the original source file, and rewriting the temporary storage file into a new source file.
Optionally, the step of writing the data into the temporary storage file includes:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
Optionally, after the step of deleting the original source file and rewriting the temporary storage file into a new source file, the text file writing method further includes:
when a data reading command is received, detecting whether a temporary storage file exists in a source file directory corresponding to the data reading command;
if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading data of the new source file;
if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether the complete written data exists in the temporary storage file;
if the written complete data exists, reading the data in the temporary storage file;
and if the written complete data does not exist, reading the data in the original source file.
Optionally, the step of detecting whether there is complete data written in the temporary storage file includes:
detecting whether end mark information exists in the temporary storage file or not;
if the ending mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
The present application also provides a text file reading apparatus, which is applied to a data reading device, and includes:
the device comprises a temporary storage file detection module, a temporary storage file generation module and a temporary storage file updating module, wherein the temporary storage file detection module is used for detecting whether a temporary storage file exists in a source file directory corresponding to a data reading command when the data reading command is received, and the temporary storage file is used for being rewritten into a new source file after data is written;
the temporary storage file-nonexistence module is used for judging that the temporary storage file is rewritten into a new source file if the temporary storage file does not exist, and directly reading the data of the new source file;
a data integrity detection module, configured to determine that the temporary storage file is not rewritten into a new source file if the temporary storage file exists, and detect whether the temporary storage file has complete data written in;
the complete data storage module is used for reading the data in the temporary storage file if complete data which is written in exists;
and the complete data module does not exist, and is used for reading the data in the original source file if the written complete data does not exist.
Optionally, the detection data integrity module is further configured to:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
Optionally, the text file reading device is further configured to:
when detecting that data is written in the source file, newly establishing a temporary storage file under a directory of the source file;
writing the data into the temporary storage file;
when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
and deleting the original source file, and rewriting the temporary storage file into a new source file.
Optionally, the text file reading device is further configured to:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
The present application also provides a text file writing device, which is applied to data writing equipment, and includes:
the new file creating module is used for creating a temporary storage file under the directory of the source file when a data writing command is received;
a write data module for writing the data into the temporary storage file;
a writing end mark information module, configured to sequentially write end mark information in the temporary storage file after detecting that all the data are written in the temporary storage file;
and the rewriting module is used for deleting the original source file and rewriting the temporary storage file into a new source file.
Optionally, the write data module is further configured to:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
Optionally, the text file writing device is further configured to:
when a data reading command is received, detecting whether a temporary storage file exists in a source file directory corresponding to the data reading command;
if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading the data of the new source file;
if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether the complete written data exists in the temporary storage file;
if the written complete data exists, reading the data in the temporary storage file;
and if the written complete data does not exist, reading the data in the original source file.
Optionally, the text file writing device is further configured to:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the text file reading method stored on the memory and executable on the processor, the program of the text file reading method being executable by the processor to implement the steps of the text file reading method as described above.
The present application further provides an electronic device, the electronic device is an entity device, the electronic device includes: a memory, a processor and a program of the text file writing method stored on the memory and executable on the processor, the program of the text file writing method being executable by the processor to implement the steps of the text file writing method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a text file reading method, which when executed by a processor implements the steps of the text file reading method as described above.
The present application also provides a computer-readable storage medium having stored thereon a program for implementing a text file writing method, which when executed by a processor implements the steps of the text file writing method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the text file reading method as described above.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the text file writing method as described above.
Compared with the technical means of ensuring the integrity of a file by using a check code in the file integrity protection process adopted by the prior art, the method comprises the steps of detecting whether a temporary storage file exists in a source file directory corresponding to a data reading command or not when the data reading command is received, wherein the temporary storage file is used for being rewritten into a new source file after data is written, judging that the temporary storage file is rewritten into the new source file if the temporary storage file does not exist, directly reading the data of the new source file, judging that the data in the temporary storage file is complete at the moment, and judging that the temporary storage file is not rewritten into the new source file if the temporary storage file exists, detecting whether the written complete data exists in the temporary storage file, if the written complete data exists, reading the data in the temporary storage file, if the written complete data does not exist, the content of the original source file is not modified, and the content is complete, reading the data in the original source file, and judging whether the complete data in the temporary storage file is read or the complete data in the original source file is read by detecting whether the temporary storage file exists or detecting whether the data in the temporary storage file is complete, so that the purpose of ensuring that the read files are all complete data is achieved, the technical defect that the written content of the file is lost and the incomplete content text file is read in the reading process due to the limitation of check codes in the prior art is overcome, the complete data in the temporary storage file is not read or the complete data in the original source file is read, therefore, the content integrity of the text file is guaranteed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious for those skilled in the art to obtain other drawings without inventive exercise.
FIG. 1 is a schematic flowchart of a first embodiment of a method for reading a text document according to the present application;
FIG. 2 is a flowchart illustrating a second embodiment of a method for writing a text file according to the present application;
fig. 3 is a schematic device structure diagram of a hardware operating environment related to a text file reading method and/or a text file writing method in an embodiment of the present application.
The objectives, features, and advantages of the present application will be further described with reference to the accompanying drawings.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
At present, content integrity protection is generally performed by using check codes, but the check codes have limitations, and only part of data can be written into a text file, but all data cannot be written into the text file, so that the content of the file is empty or missing in the writing process, correct content cannot be read when the text file is read, and the content integrity of the text file cannot be guaranteed.
In a first embodiment of the text file reading method of the present application, referring to fig. 1, the text file reading method includes:
step S10, when a data reading command is received, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command, wherein the temporary storage file is used for being rewritten into a new source file after data is written;
step S20, if the temporary storage file does not exist, determining that the temporary storage file has been rewritten to a new source file, and directly reading data of the new source file;
step S30, if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether the temporary storage file has complete data written in;
step S40, if there is complete data written, reading the data in the temporary storage file;
in step S50, if there is no complete data that has been written, the data in the original source file is read.
In this embodiment, it should be noted that the text file may be an xml (Extensible Markup Language) file, a JSON (JavaScript Object Notation) file, or a csv (Comma-Separated Values) file; the temporary storage file is rewritten into a new source file after the complete data is written, the method for writing the complete data into the temporary storage file can be a mode of calling a programming interface, the called programming interface can be a DOM (Document Object Model) interface, a JDOM (Java Document Object Model) interface or a SAX (Simple API for, driven push Model) interface, the DOM is a standard programming interface for processing extensible markup language recommended by the W3C (World Wide Web Consortium) organization, the DOM is an application program interface independent of platform and language, the DOM can dynamically access programs and scripts to update the contents thereof, the JDOM is a Java code to access and output data, the SAX interface is a written alternative method, the SAX is different from the DOM, and the SAX scans the Document and outputs the Document line by line; the source file is a last version of the file relative to the temporary storage file, the contents of which are complete before overwriting; the content of the new source file is consistent with the content of the temporary storage file.
As an example, the steps S10 to S50 include: when a data reading command is received, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command, wherein the data reading command can be a mode of generating a request signal by calling an Http (Hyper Text Transfer Protocol) external interface, triggering the data reading command based on the request signal, and detecting whether the temporary storage file exists in the directory of the source file corresponding to the data reading command, wherein the mode can be that the temporary storage file exists in the directory of the source file corresponding to the data reading command is opened by opening the directory of the source file, checking whether the temporary storage file exists in the directory, or finding and opening the temporary storage file, and then selecting an attribute of the temporary storage file, so that a storage path of the temporary storage file can be seen; if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, wherein the rewritten content comprises that the file name of the temporary storage file is modified into the file name of the source file, and at the moment, directly reading the data of the new source file, namely reading the data of the temporary storage file; if the temporary storage file exists, that is, the file name of the temporary storage file at this time is not modified into the file name of the source file due to some abnormal conditions, where the abnormal conditions include sudden power failure or sudden network failure, it is determined that the temporary storage file is not rewritten into a new source file, and it is necessary to further detect whether the temporary storage file has complete data that is written, where the completion of writing means that after the complete data is written, the end flag information is written in sequence, and the end flag information is used to determine whether the data is written completely; if complete data which is written completely exists, although the temporary storage file exists at the moment, the content of the temporary storage file is complete, and the data in the temporary storage file is read; and if the written complete data does not exist, reading the data in the original source file.
For example, assuming that a file is abc.xml and a source file thereof is abc.xml, when a command for reading the content of the file abc.xml is received, first, it is detected whether abc.xml exists in a directory of the source file abc.xml, if abc.xml does not exist, it is determined that abc.xml has been rewritten into a new source file, abc.xml is directly read, if abc.xml exists, it is determined that abc.xml has not been rewritten into a new source file, at this time, it is required to detect whether complete data which has been written exists in abc.xml, if complete data which has been written exists, abc.xml is read, and if complete data which has been written does not exist, abc.xml is read.
The step of detecting whether complete data written in the temporary storage file exists comprises the following steps:
step S31, detecting whether end flag information exists in the temporary storage file;
step S32, if the ending mark information exists, judging that the content of the temporary storage file is complete;
in step S33, if the end flag information does not exist, it is determined that the content of the temporary storage file is incomplete.
In this embodiment, it should be noted that the end flag information is an Identifier for marking that the file content has ended, and is used to determine whether the data is completely written, where the end flag information may be a GUID (global Unique Identifier) character string, where a GUID is a digital Identifier with a binary length of 128 bits generated by an algorithm, and ideally, no computer or computer cluster generates two identical GUIDs, and the total number of GUIDs reaches 2^128 (3.4 × 10^ 38), so the probability of randomly generating two identical GUIDs is very small but is not 0, and by using a GUID as the end flag information, it can be ensured that the end flag information is not constructed by other programs.
As one example, steps S31 to S33 include: detecting whether end mark information exists in the temporary storage file, wherein the end mark information only exists at the end of the content of the file, and the detection mode can be that whether the end mark information exists at the end of the content of the temporary storage file or not is detected; if the ending mark information exists, namely the data is completely written into the temporary storage file, judging that the content of the temporary storage file is complete; and if the end mark information does not exist, namely the step of writing the data fails, judging that the content of the temporary storage file is incomplete.
For example, assuming that the end flag information is "a 725982063d746788cb5f599e4a4c52 f", it is detected whether "a 725982063d746788cb5f599e4a4c52 f" exists in the content end of the temporary storage file; if the ending mark information exists at the ending part of the content, judging that the content of the temporary storage file is complete; and if the ending mark information does not exist at the ending part of the content, judging that the content of the temporary storage file is incomplete.
Before the step of detecting whether a temporary storage file exists in a directory of a source file corresponding to a data read command when the data read command is received, the text file reading method further includes:
step A10, when detecting that data is written in the source file, creating a temporary storage file under the directory of the source file;
step A20, writing the data into the temporary storage file;
step A30, when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
step a40, deleting the original source file and rewriting the temporary storage file to a new source file.
In this embodiment, it should be noted that the data may be composed of one or more data blocks.
As an example, the steps a10 to a40 include: when data are written in the source file, retrieving a directory of the source file, and creating a temporary storage file under the directory of the source file, wherein the retrieving mode can be retrieving through a search box or screening retrieving, the search box retrieving refers to directly inputting a file name of the source file in the search box for query, and the screening retrieving refers to querying through conditional screening, such as selecting a creation date, a file type or a file size of the source file; writing the data into the temporary storage file by calling an operating system interface; when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file, namely writing the end mark information at the end of the content of the temporary storage file; and deleting the original source file, and rewriting the temporary storage file into a new source file, wherein the deleting mode can be manual deleting.
For example, assume that the source file is abc.xml, the end flag information is "a 725982063d746788cb5f599e4a4c52 f", a directory of abc.xml is first retrieved, a temporary storage file abc.xml is newly created under the directory, data is written in abc.xml, when it is detected that all data is written in abc.xml, the end flag information "a 725982063d746788cb5f599e4a4c52 f" is written at the end of the content, finally the source file abc.xml is deleted, and the file name "modified to.xml" of abc.xml is used as a new source file.
Wherein the writing the data to the temporary storage file comprises:
step A21, receiving a data write request signal for writing the data through a preset operating system interface;
step a22, writing the data into the temporary storage file based on the data write request signal.
In this embodiment, it should be noted that the preset os Interface is a set formed by all system calls provided by an os, that is, a program Interface or an Application Programming Interface (API), and includes a file read/write operation Interface, a file system operation Interface, an inter-process communication Interface, a shared memory Interface, and the like.
As an example, the steps a21 to a22 include: receiving a data writing request signal for writing the data by calling the preset operating system interface, wherein calling the preset operating system interface can generate the data writing request signal for calling a file writing operation interface, such as calling a write function interface; and writing the data into the temporary storage file based on the data writing request signal.
The application provides a text file reading method, compared with the technical means of ensuring the integrity of a file by using a check code in the file integrity protection process adopted by the prior art, the text file reading method comprises the steps of detecting whether a temporary storage file exists under a source file directory corresponding to a data reading command when the data reading command is received, wherein the temporary storage file is used for being rewritten into a new source file after data is written, if the temporary storage file does not exist, judging that the temporary storage file is rewritten into the new source file, directly reading the data of the new source file, at the moment, the data in the temporary storage file is complete, if the temporary storage file exists, judging that the temporary storage file is not rewritten into the new source file, and detecting whether the complete written data exists in the temporary storage file, if the written complete data exists, reading the data in the temporary storage file, if the written complete data does not exist, the content of the original source file is not modified, and the content is still complete, reading the data in the original source file, and judging whether the temporary storage file or the original source file is read by detecting whether the temporary storage file exists and detecting whether the data of the temporary storage file is complete, so that the aim of ensuring that the read text file is complete in data is fulfilled, the technical defect that the text file with incomplete content is read due to the fact that the data cannot be written into the text file due to limitation of check codes is overcome, and the content integrity of the text file is ensured.
In a second embodiment of the text file writing method according to the present application, with reference to fig. 2, the text file writing method includes:
step B10, when a data write command is received, a temporary storage file is newly built under the directory of the source file;
step B20, writing the data into the temporary storage file;
step B30, when detecting that the data is written into the temporary storage file, writing end mark information into the temporary storage file in sequence;
and step B40, deleting the original source file and rewriting the temporary storage file into a new source file.
In this embodiment, it should be noted that the temporary storage file may be a file that is read in the data reading method, and a manner of reading the temporary storage file may be a DataSet (data set) read or a Document (object mode) read.
As an example, the steps a10 to a40 include: when a data write command is received, retrieving a directory of the source file, and newly building a temporary storage file under the directory of the source file, wherein the retrieval mode can be retrieval through a search box or screening retrieval, the search box retrieval refers to directly inputting a file name of the source file in the search box for query, and the screening retrieval refers to query through conditional screening, such as selecting a creation date, a file type or a file size of the source file; writing the data into the temporary storage file by calling an operating system interface; when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file, namely writing the end mark information at the end of the content of the temporary storage file; and deleting the original source file, and rewriting the temporary storage file into a new source file, wherein the deleting mode can be manual deleting.
For example, assume that the source file is abc.xml, the end flag information is "a 725982063d746788cb5f599e4a4c52 f", a directory of abc.xml is first retrieved, a temporary storage file abc.xml is newly created under the directory, data is written in abc.xml, when it is detected that all data is written in abc.xml, the end flag information "a 725982063d746788cb5f599e4a4c52 f" is written at the end of the content, finally the source file abc.xml is deleted, and the file name "modified to.xml" of abc.xml is used as a new source file.
Wherein the writing the data to the temporary storage file comprises:
step B21, receiving a data writing request signal for writing the data through a preset operating system interface;
step B22, writing the data into the temporary storage file based on the data writing request signal.
As an example, the steps B21 to B22 include: receiving a data writing request signal for writing the data by calling the preset operating system interface, wherein calling the preset operating system interface can generate the data writing request signal for calling a file writing operation interface, such as calling a write function interface; and writing the data into the temporary storage file based on the data writing request signal.
After the step of deleting the original source file and rewriting the temporary storage file into a new source file, the text file writing method further includes:
step C10, when receiving a data reading command, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command;
step C20, if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading the data of the new source file;
step C30, if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether the complete written data exists in the temporary storage file;
step C40, if there is complete data written, reading the data in the temporary storage file;
as an example, the step C10 to the step C40 include: when a data reading command is received, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command, wherein the data reading command can be a mode of generating a request signal by calling an Http (Hyper Text Transfer Protocol) external interface, triggering the data reading command based on the request signal, and detecting whether the temporary storage file exists in the directory of the source file corresponding to the data reading command, wherein the mode can be that the temporary storage file exists in the directory of the source file corresponding to the data reading command is opened by opening the directory of the source file, checking whether the temporary storage file exists in the directory, or finding and opening the temporary storage file, and then selecting an attribute of the temporary storage file, so that a storage path of the temporary storage file can be seen; if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, wherein the rewritten content comprises that the file name of the temporary storage file is modified into the file name of the source file, and at the moment, directly reading the data of the new source file, namely reading the data of the temporary storage file; if the temporary storage file exists, that is, the file name of the temporary storage file at this time is not modified into the file name of the source file due to some abnormal conditions, and the abnormal conditions include sudden power failure or sudden network failure, it is determined that the temporary storage file is not rewritten into a new source file, and it is necessary to further detect whether the temporary storage file has complete data which is written, where the writing is completed by writing the complete data and then writing the end flag information in sequence; if complete data which is written in exists, namely the complete data and the end mark information are written in the temporary storage file at the moment, although the temporary storage file exists at the moment, the content of the temporary storage file is complete, the data in the temporary storage file is read; and if the written complete data does not exist, namely the data content written in the temporary storage file is missing or the ending identification code is lacked, reading the data in the original source file.
For example, assuming that a file is abc.xml and a source file thereof is abc.xml, when a command for reading the content of the abc.xml of the file is received, it is first detected whether abc.xml exists in a directory of the source file abc.xml, if abc.xml does not exist, it is determined that abc.xml has been rewritten into a new source file, abc.xml is directly read, if abc.xml exists, it is determined that abc.xml has not been rewritten into a new source file, at this time, it is necessary to detect whether written complete data exists in abc.xml, if written complete data exists, abc.xml is read, and if written complete data does not exist, abc.xml is read.
The step of detecting whether the complete data with write completion exists in the temporary storage file comprises the following steps:
step C31, detecting whether the temporary storage file has end mark information;
step C32, if the ending mark information exists, judging that the content of the temporary storage file is complete;
and step C33, if the end flag information does not exist, determining that the content of the temporary storage file is incomplete.
As an example, the step C31 to the step C33 include: detecting whether end mark information exists in the temporary storage file, wherein the end mark information only exists at the end of the content of the file, and the detection mode can be that whether the end mark information exists at the end of the content of the temporary storage file or not is detected; if the ending mark information exists, namely the data is completely written into the temporary storage file, judging that the content of the temporary storage file is complete; and if the end mark information does not exist, namely the step of writing the data fails, judging that the content of the temporary storage file is incomplete.
For example, assuming that the end flag information is "a 725982063d746788cb5f599e4a4c52 f", it is detected whether "a 725982063d746788cb5f599e4a4c52 f" exists in the content end of the temporary storage file; if the ending mark information exists at the ending part of the content, judging that the content of the temporary storage file is complete; and if the ending mark information does not exist at the ending part of the content, judging that the content of the temporary storage file is incomplete.
The embodiment of the application provides a text file writing method, firstly, when a data writing command is received, a temporary storage file is newly built under a directory of a source file, then the data is written into the temporary storage file, when the data is detected to be completely written into the temporary storage file, then end mark information is sequentially written into the temporary storage file, finally, the original source file is deleted, the temporary storage file is rewritten into a new source file,
the end mark information is written to ensure that data can be completely written into the file, and whether the content of the temporary storage file is complete can be judged in the subsequent read file based on the end mark information, so that whether the temporary storage file is read or the source file is read is determined, the aim of ensuring that complete text files always exist in the directory of the source file is fulfilled, and the read text files are ensured to be complete in content.
An embodiment of the present application further provides a text file reading apparatus, where the text file reading apparatus is applied to a data reading device, and the text file reading apparatus includes:
the device comprises a temporary storage file detection module, a temporary storage file generation module and a temporary storage file updating module, wherein the temporary storage file detection module is used for detecting whether a temporary storage file exists in a source file directory corresponding to a data reading command when the data reading command is received, and the temporary storage file is used for being rewritten into a new source file after data is written;
the temporary storage file-nonexistence module is used for judging that the temporary storage file is rewritten into a new source file if the temporary storage file does not exist, and directly reading the data of the new source file;
a data integrity detection module, configured to determine that the temporary storage file is not rewritten into a new source file if the temporary storage file exists, and detect whether the complete data written into the temporary storage file exists;
the complete data storage module is used for reading the data in the temporary storage file if complete data which is written in exists;
and the non-complete data module is used for reading the data in the original source file if the written complete data does not exist.
Optionally, the detection data integrity module is further configured to:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the ending mark information does not exist, judging that the content of the temporary storage file is incomplete. Optionally, the text file reading device is further configured to:
when detecting that data is written in the source file, newly building a temporary storage file under the directory of the source file;
writing the data into the temporary storage file;
when detecting that the data are all written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
and deleting the original source file, and rewriting the temporary storage file into a new source file.
Optionally, the text file reading device is further configured to:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
The text file reading device provided by the invention adopts the text file reading method in the embodiment, and solves the technical problem that the content integrity of the file in the prior art can not be ensured. Compared with the prior art, the beneficial effects of the text file reading device provided by the embodiment of the invention are the same as the beneficial effects of the text file reading method provided by the embodiment, and other technical characteristics of the text file reading device are the same as those disclosed by the embodiment method, which are not repeated herein.
An embodiment of the present application further provides a text file writing device, where the text file writing device is applied to a data writing device, and the text file writing device includes:
the new file creating module is used for creating a temporary storage file under the directory of the source file when a data writing command is received;
a write data module for writing the data into the temporary storage file;
a writing end mark information module, configured to sequentially write end mark information in the temporary storage file after detecting that all the data are written in the temporary storage file;
and the rewriting module is used for deleting the original source file and rewriting the temporary storage file into a new source file.
Optionally, the write data module is further configured to:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
Optionally, the text file writing device is further configured to:
when a data reading command is received, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command;
if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading data of the new source file;
if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether the complete written data exists in the temporary storage file;
if the written complete data exists, reading the data in the temporary storage file;
and if the written complete data does not exist, reading the data in the original source file.
Optionally, the text file writing device is further configured to:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
The text file writing device provided by the invention adopts the text file writing method in the embodiment, and solves the technical problem that the content integrity of the file in the prior art can not be ensured. Compared with the prior art, the beneficial effects of the text file writing device provided by the embodiment of the invention are the same as the beneficial effects of the text file writing method provided by the embodiment, and other technical features of the text file writing device are the same as the features disclosed by the embodiment method, which are not repeated herein.
An embodiment of the present invention provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the text file reading method and/or the text file writing method in the above embodiments.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing apparatus (e.g., a central processing unit, a graphic processor, etc.) that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) or a program loaded from a storage apparatus into a Random Access Memory (RAM). In the RAM, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device, the ROM, and the RAM are connected to each other through a bus. An input/output (I/O) interface is also connected to the bus.
Generally, the following systems may be connected to the I/O interface: input devices including, for example, touch screens, touch pads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, and the like; output devices including, for example, Liquid Crystal Displays (LCDs), speakers, vibrators, and the like; storage devices including, for example, magnetic tape, hard disk, etc.; and a communication device. The communication means may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While the figures illustrate an electronic device with various systems, it is to be understood that not all illustrated systems are required to be implemented or provided. More or fewer systems may alternatively be implemented or provided.
In particular, the processes described above with reference to the flow diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means, or installed from a storage means, or installed from a ROM. The computer program, when executed by a processing device, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
The electronic device provided by the invention adopts the text file reading method and/or the text file writing method in the embodiment, and solves the technical problem that the content integrity of the text file in the prior art cannot be ensured. Compared with the prior art, the electronic device provided by the embodiment of the invention has the same beneficial effects as the text file reading method and/or the text file writing method provided by the embodiment, and other technical features in the electronic device are the same as those disclosed in the embodiment method, which are not repeated herein.
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof. In the foregoing description of embodiments, the particular features, structures, materials, or characteristics may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
The present embodiment provides a computer-readable storage medium having stored thereon computer-readable program instructions for executing the text file reading method and/or the text file writing method in the above-described embodiments.
The computer readable storage medium provided by the embodiments of the present invention may be, for example, a USB flash disk, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, or device, or any combination thereof. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, or device. Program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer-readable storage medium may be embodied in an electronic device; or may be separate and not incorporated into the electronic device.
The computer-readable storage medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device detects whether a temporary storage file exists in a directory of a source file corresponding to a data read command when the data read command is received, wherein the temporary storage file is used for rewriting to a new source file after data is written; if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading data of the new source file; if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether complete written data exists in the temporary storage file or not; if the written complete data exists, reading the data in the temporary storage file; and if the written complete data does not exist, reading the data in the original source file.
And/or when a data writing command is received, a temporary storage file is newly built under the directory of the source file; writing the data into the temporary storage file; when detecting that the data are all written into the temporary storage file, sequentially writing end mark information into the temporary storage file; and deleting the original source file, and rewriting the temporary storage file into a new source file.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present disclosure may be implemented by software or hardware. Wherein the names of the modules do not in some cases constitute a limitation of the unit itself.
The computer-readable storage medium provided by the invention stores the computer-readable program instruction for executing the text file reading method and/or the text file writing method, and solves the technical problem that the content integrity of the file cannot be ensured in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment of the invention are the same as the beneficial effects of the text file reading method and/or the text file writing method provided by the embodiment, and are not repeated herein.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the text file reading method as described above.
The computer program product provided by the application solves the technical problem that the content integrity of the file cannot be guaranteed in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as those of the text file reading method provided by the embodiment, and are not repeated herein.
The present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of the text file writing method as described above.
The computer program product provided by the application solves the technical problem that the content integrity of the file cannot be guaranteed in the prior art. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the invention are the same as those of the text file writing method provided by the embodiment, and are not repeated herein.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings, or which are directly or indirectly applied to other related technical fields, are included in the scope of the present application.

Claims (10)

1. A text file reading method is characterized by comprising the following steps:
when a data reading command is received, detecting whether a temporary storage file exists in a directory of a source file corresponding to the data reading command, wherein the temporary storage file is used for being rewritten into a new source file after data is written;
if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading data in the new source file;
if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether complete data written in the temporary storage file exists or not;
if the written complete data exists, reading the data in the temporary storage file;
and if the written complete data does not exist, reading the data in the original source file.
2. The text file reading method according to claim 1, wherein the step of detecting whether the complete data of write completion exists in the temporary storage file comprises:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
3. The text file reading method according to claim 2, wherein before the step of detecting whether or not a temporary storage file exists under a directory of a source file corresponding to a data read command when the data read command is received, the text file reading method further comprises:
when detecting that data is written in the source file, newly building a temporary storage file under the directory of the source file;
writing the data into the temporary storage file;
when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
and deleting the original source file, and rewriting the temporary storage file into a new source file.
4. The text file reading method according to claim 3, wherein the step of writing the data to the temporary storage file comprises:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
5. A text file writing method is characterized by comprising the following steps:
when a data writing command is received, a temporary storage file is newly built under the directory of the source file;
writing the data into the temporary storage file;
when detecting that all the data are written into the temporary storage file, sequentially writing end mark information into the temporary storage file;
and deleting the original source file, and rewriting the temporary storage file into a new source file.
6. The text file writing method according to claim 5, wherein the step of writing the data into the temporary storage file comprises:
receiving a data writing request signal for writing the data through a preset operating system interface;
and writing the data into the temporary storage file based on the data writing request signal.
7. The text file writing method according to claim 5, wherein after the step of deleting the original source file and rewriting the temporarily stored file to a new source file, the text file writing method further comprises:
when a data reading command is received, detecting whether a temporary storage file exists in a source file directory corresponding to the data reading command;
if the temporary storage file does not exist, determining that the temporary storage file is rewritten into a new source file, and directly reading data of the new source file;
if the temporary storage file exists, judging that the temporary storage file is not rewritten into a new source file, and detecting whether complete written data exists in the temporary storage file or not;
if the written complete data exists, reading the data in the temporary storage file;
and if the written complete data does not exist, reading the data in the original source file.
8. The text file writing method according to claim 7, wherein the step of detecting whether the complete data of which writing is completed exists in the temporary storage file comprises:
detecting whether end mark information exists in the temporary storage file or not;
if the end mark information exists, judging that the content of the temporary storage file is complete;
and if the end mark information does not exist, judging that the content of the temporary storage file is incomplete.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the steps of the text file reading method according to any one of claims 1 to 4 and/or to perform the steps of the text file writing method according to any one of claims 5 to 8.
10. A computer-readable storage medium, characterized in that a program implementing a text file reading method and/or a text file writing method is stored on the computer-readable storage medium, the program implementing the text file reading method being executed by a processor to implement the steps of the text file reading method according to any one of claims 1 to 4, and/or the program implementing the text file writing method being executed by a processor to implement the steps of the text file writing method according to any one of claims 5 to 8.
CN202210874931.9A 2022-07-25 2022-07-25 Text file reading method, text file writing method, electronic equipment and readable storage medium Active CN114936387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210874931.9A CN114936387B (en) 2022-07-25 2022-07-25 Text file reading method, text file writing method, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210874931.9A CN114936387B (en) 2022-07-25 2022-07-25 Text file reading method, text file writing method, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114936387A true CN114936387A (en) 2022-08-23
CN114936387B CN114936387B (en) 2022-11-29

Family

ID=82867676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210874931.9A Active CN114936387B (en) 2022-07-25 2022-07-25 Text file reading method, text file writing method, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114936387B (en)

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2047696A1 (en) * 1989-03-07 1990-09-08 Luis H. Sciupac Method of reading and writing files on non-erasable storage media
JP2008040806A (en) * 2006-08-07 2008-02-21 Seiko Epson Corp File processor, file processing method, and file processing program
CN101515276A (en) * 2008-12-29 2009-08-26 北京握奇数据系统有限公司 Method for write operation of file data, and recovery method and recovery system for file data
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN101976226A (en) * 2010-10-20 2011-02-16 青岛海信宽带多媒体技术有限公司 Data storage method
CN102073554A (en) * 2009-11-24 2011-05-25 新奥特(北京)视频技术有限公司 Method and device for recovering files closed abnormally
CN103136234A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Data processing method and data processing device
CN105095418A (en) * 2015-07-13 2015-11-25 浪潮(北京)电子信息产业有限公司 Method and apparatus for processing write request
WO2017005125A1 (en) * 2015-07-06 2017-01-12 张兆琦 Temporary file management method for use in operating system or application program
CN107209836A (en) * 2015-01-30 2017-09-26 国际商业机器公司 File integrality is protected
CN108153521A (en) * 2017-12-13 2018-06-12 深圳市泛海三江科技发展有限公司 The management method and its system of a kind of XML configuration file
CN110209654A (en) * 2019-06-05 2019-09-06 深圳市网心科技有限公司 A kind of text file data storage method, system and electronic equipment and storage medium
CN110555293A (en) * 2019-09-10 2019-12-10 百度在线网络技术(北京)有限公司 Method, apparatus, electronic device and computer readable medium for protecting data
CN112306965A (en) * 2020-10-02 2021-02-02 中盈优创资讯科技有限公司 Data writing storage method, device, equipment and computer readable storage medium
CN113242321A (en) * 2021-07-12 2021-08-10 广东睿江云计算股份有限公司 Data transmission method for mobile storage device
CN113377722A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Resource data reading method and device and storage medium
CN114691612A (en) * 2022-03-25 2022-07-01 阿里巴巴(中国)有限公司 Data writing method and device and data reading method and device

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2047696A1 (en) * 1989-03-07 1990-09-08 Luis H. Sciupac Method of reading and writing files on non-erasable storage media
JP2008040806A (en) * 2006-08-07 2008-02-21 Seiko Epson Corp File processor, file processing method, and file processing program
CN101515276A (en) * 2008-12-29 2009-08-26 北京握奇数据系统有限公司 Method for write operation of file data, and recovery method and recovery system for file data
CN102073554A (en) * 2009-11-24 2011-05-25 新奥特(北京)视频技术有限公司 Method and device for recovering files closed abnormally
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN101976226A (en) * 2010-10-20 2011-02-16 青岛海信宽带多媒体技术有限公司 Data storage method
CN103136234A (en) * 2011-11-25 2013-06-05 腾讯科技(深圳)有限公司 Data processing method and data processing device
CN107209836A (en) * 2015-01-30 2017-09-26 国际商业机器公司 File integrality is protected
US20170316208A1 (en) * 2015-01-30 2017-11-02 International Business Machines Corporation File integrity preservation
WO2017005125A1 (en) * 2015-07-06 2017-01-12 张兆琦 Temporary file management method for use in operating system or application program
CN105095418A (en) * 2015-07-13 2015-11-25 浪潮(北京)电子信息产业有限公司 Method and apparatus for processing write request
CN108153521A (en) * 2017-12-13 2018-06-12 深圳市泛海三江科技发展有限公司 The management method and its system of a kind of XML configuration file
CN110209654A (en) * 2019-06-05 2019-09-06 深圳市网心科技有限公司 A kind of text file data storage method, system and electronic equipment and storage medium
CN110555293A (en) * 2019-09-10 2019-12-10 百度在线网络技术(北京)有限公司 Method, apparatus, electronic device and computer readable medium for protecting data
CN112306965A (en) * 2020-10-02 2021-02-02 中盈优创资讯科技有限公司 Data writing storage method, device, equipment and computer readable storage medium
CN113377722A (en) * 2021-07-02 2021-09-10 厦门雅基软件有限公司 Resource data reading method and device and storage medium
CN113242321A (en) * 2021-07-12 2021-08-10 广东睿江云计算股份有限公司 Data transmission method for mobile storage device
CN114691612A (en) * 2022-03-25 2022-07-01 阿里巴巴(中国)有限公司 Data writing method and device and data reading method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHRISTOPHER M. WOLFF 等: "Share File Updating for Test Farms Using a File Cache", 《2020 IEEE INFRASTRUCTURE CONFERENCE》 *
谢佳岩: "基于Minifilter框架的文件保护方法及关键技术研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Also Published As

Publication number Publication date
CN114936387B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN111274760B (en) Rich text data processing method and device, electronic equipment and computer storage medium
US10979440B1 (en) Preventing serverless application package tampering
CN111639287A (en) Page processing method and device, terminal equipment and readable storage medium
CN111555940B (en) Client test method and device, electronic equipment and computer readable storage medium
WO2022111591A1 (en) Page generation method and apparatus, storage medium, and electronic device
CN110865898B (en) Method, device, medium and equipment for converging crash call stack
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
WO2020233045A1 (en) Plug-in update method and device, server and computer readable storage medium
CN111813465B (en) Information acquisition method, device, medium and equipment
US9501298B2 (en) Remotely executing operations of an application using a schema that provides for executable scripts in a nodal hierarchy
CN110990346A (en) File data processing method, device, equipment and storage medium based on block chain
CN111783010B (en) Webpage blank page monitoring method, device, terminal and storage medium
CN114936387B (en) Text file reading method, text file writing method, electronic equipment and readable storage medium
CN111124541B (en) Configuration file generation method, device, equipment and medium
US20140331117A1 (en) Application-based dependency graph
CN115080114A (en) Application program transplanting processing method, device and medium
US10838716B1 (en) Automated dependency detection and response
CN114143308A (en) File uploading information processing method and device, computer equipment and storage medium
US10908924B2 (en) System and methods for loading objects from hash chains
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium
CN111209739A (en) Electronic form, electronic device, storage medium, and electronic form verification method
CN115658374B (en) Platform compatibility problem repairing method and device, electronic equipment and storage medium
CN113986517B (en) API call log acquisition method and device, electronic equipment and storage medium
CN113448550B (en) Method and device for realizing collection management of classes, electronic equipment and computer medium
CN115237816B (en) System function verification method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant