Fast batch file recovery method
The invention relates to a quick batch file recovery method, which comprises the following steps of: S1, initializing variables, namely marking a current cursor position and a final cursor position, and defining a recovery file length, a data block and a data block reading stream; s2, the data block...
Gespeichert in:
Hauptverfasser: | , , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a quick batch file recovery method, which comprises the following steps of: S1, initializing variables, namely marking a current cursor position and a final cursor position, and defining a recovery file length, a data block and a data block reading stream; s2, the data blocks are read through the data block reading stream, the read data blocks are written into the cache, and the cache is cyclically traversed; s3, when the format check code is read, assigning the current cursor position to the current cursor position, and calculating the length of the read file; step S4, writing the read file into an output cache; and S5, storing the file in the output cache into a file. According to the method, the data blocks or the data blocks in the disk can be processed in batches, and the method is time-saving, efficient and accurate.
本发明涉及一种文件快速批量恢复方法,包括如下步骤:步骤S1、初始化变量,包括对当前光标位置和最后光标位置进行标记,定义恢复文件长度、数据块以及数据块读取流;步骤S2、通过数据块读取流对数据块进行读取,将读取的数据块写入缓存中,并且对缓存进行循环遍历;步骤S3、读取到格式校验码时,将此时光标位置赋值给当前光标位置并且计算读取的文 |
---|