Unlock instant, AI-driven research and patent intelligence for your innovation.

Method for operating writing-file

A file operation and file writing technology, applied in special data processing applications, instruments, multi-program devices, etc., can solve problems such as file loss, inconvenience for unified management of file operations, and system crashes.

Active Publication Date: 2007-05-23
HUAWEI TECH CO LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When a large message is writing a file, if the user wants to terminate the operation of writing the file midway, such as issuing a command to terminate the current execution, or wishing to stop the writing operation of the file before the system is reset, the purpose cannot be achieved
[0006] 2) When there is currently a file writing operation, if the system is reset, the file writing operation is forcibly interrupted, which may cause file loss, damage to the file system, or even cause system crashes
[0007] 3) The direct operations on files are scattered in each module of the software operating system, which is inconvenient to manage the operations of files uniformly

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for operating writing-file
  • Method for operating writing-file
  • Method for operating writing-file

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The invention provides a method for writing a file operation. The basic idea of ​​the technical solution is to establish a unified management file operation task. When the system task needs to write a file operation, a file writing request is initiated to the file operation task; the file operation task Divide the information to be written into small blocks and write the file in units of blocks. After writing the unit block information, judge whether the write operation flag is terminated. If not, continue to write the next piece of information. If so, stop writing Operation; if you want to terminate the write operation during the file writing process, send a request to terminate the write file, and set the write operation flag to terminate.

[0031] Please refer to Fig. 1, it is the method flowchart of the present invention, and this technical scheme comprises:

[0032] P1) After the file operation task receives the file write request, it divides the information to be ...

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 discloses a document writing operation method. The basic idea of the invention is to create a unified management file operations task, and when the system tasks needs to write documents operation, initiating the request of writing file to the said file operations task; the file operations task divides the writing information into small blocks, writing into the file with the block unit, and after finish writing unit block, judging whether writing operation sign is termination, and if not, continue to write next block, and if yes, terminating the writing operation; if hope to terminate writing operation in writing file procedure, send the request of terminating writing file, and set writing operation sign as termination. The invention can divide the writing information into small blocks, and terminate writing file operation in the writing procedure.

Description

technical field [0001] The invention relates to file operation technology, in particular to a method for writing file operation. Background technique [0002] File operation technology is widely used and is often used in technology development and equipment operation, such as log file records, data configuration file records, and other information records. Many information in the memory must be written into files. [0003] The existing operation method for writing files is to continuously write information into the file, specifically after opening the file, continuously call the write function to write the information into the file, until all the information is completely written, and finally close the file; and, the existing The write file operation is scattered among many tasks of the software running system. [0004] As can be seen from the above prior art, the existing file writing operation has the following disadvantages: [0005] 1) Because it is a method of continu...

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
IPC IPC(8): G06F17/30G06F9/46
Inventor 殷红军
Owner HUAWEI TECH CO LTD