JPH05233404A - File control system - Google Patents

File control system

Info

Publication number
JPH05233404A
JPH05233404A JP4070101A JP7010192A JPH05233404A JP H05233404 A JPH05233404 A JP H05233404A JP 4070101 A JP4070101 A JP 4070101A JP 7010192 A JP7010192 A JP 7010192A JP H05233404 A JPH05233404 A JP H05233404A
Authority
JP
Japan
Prior art keywords
file
files
backup
generation
unit
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.)
Pending
Application number
JP4070101A
Other languages
Japanese (ja)
Inventor
Kazue Sato
和江 佐藤
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP4070101A priority Critical patent/JPH05233404A/en
Publication of JPH05233404A publication Critical patent/JPH05233404A/en
Pending legal-status Critical Current

Links

Landscapes

  • Document Processing Apparatus (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To save backup files up to a backup file which is several generations before by setting and also refer to the backup files of the respective generations. CONSTITUTION:A file 1 before correction is corrected on a picture editor 2. When the file is saved after the correction, the old backup files 5 are saved by the generation up to the number of files specified at the environment specification part 11 of the picture editor 2. When the specified number is exceeded, a file control part 13 outputs a file deletion command and the backup file of the oldest generation among the backup files 5 is deleted in order.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はファイル制御方式に関
し、特に画面エディタにおけるファイル制御方式に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a file control system, and more particularly to a file control system in a screen editor.

【0002】[0002]

【従来の技術】従来のファイル制御方式は、端末、パー
ソナルコンピュータ、ワードプロセッサ等の画面エディ
タにおいて、バックアップファイルを複数世代保持する
機能はなく、また設定により何世代までファイルを保存
するか指示し、自動的にファイルを削除する機能もなか
った。
2. Description of the Related Art The conventional file control method does not have a function of retaining a plurality of generations of backup files in a screen editor such as a terminal, a personal computer, a word processor, etc. In addition, it is possible to instruct how many generations the file should be stored by setting and automatically There was also no function to delete files.

【0003】[0003]

【発明が解決しようとする課題】上述した従来のファイ
ル制御方式は、何世代も前の保存データを参照したい場
合、セーブ者がファイル名を変えて管理しなければなら
ず、ファイル数が増加した場合には自分で削除しなけれ
ばならなかった。そのため、誤ってファイル名を変えて
ファイルを上書きしたり、削除したりの誤動作が生じ
る。また、世代管理をしない利用者は、数世代前のファ
イルを参照したくても保存していない場合もあり、後戻
り修正ができないなどという問題点があった。
In the conventional file control method described above, the saver must change the file name and manage it when he / she wants to refer to the saved data many generations ago, and the number of files has increased. In case I had to delete it myself. Therefore, a wrong operation such as accidentally changing the file name and overwriting or deleting the file occurs. Further, there is a problem that a user who does not perform generation management may not be able to retrospectively correct a file that is several generations ago, even if he / she wants to refer to the file.

【0004】[0004]

【課題を解決するための手段】本発明に係るファイル制
御方式は、修正前ファイルを画面エディタで修正し、そ
の修正が終了してファイルセーブを行う場合、ファイル
制御部は環境設定部で指定したファイル数に達するま
で、世代毎にバックアップファイルとして保存し、指定
数を越えたとき、ファイル削除命令を出して古い世代の
バックアップファイルを順に削除し、修正前ファイルを
最新世代のバックファイルとしてセーブするものであ
る。
In the file control method according to the present invention, the file control unit is specified by the environment setting unit when the file before modification is modified by the screen editor and the file is saved after the modification is completed. Save as backup files for each generation until reaching the number of files, and when the specified number is exceeded, issue a file delete command to delete the backup files of the old generation in order and save the uncorrected file as the back file of the latest generation. It is a thing.

【0005】[0005]

【作用】本発明はバックアップファイルを設定により数
世代前まで保存することができ、各世代のファイルを読
み出すことができる。
According to the present invention, the backup file can be saved up to several generations before the setting, and the file of each generation can be read out.

【0006】[0006]

【実施例】図1は本発明に係るファイル制御方式の一実
施例を示すブロック図である。同図において、1は修正
前ファイル、2はその詳細な構成を下記で説明する画面
エディタ、3は修正後ファイル、4は新バックアップフ
ァイル、5は例えば世代「1」、世代「2」および世代
「3」の3個のファイルを保存する旧バックアップファ
イルである。なお、この世代「1」は最も古い旧バック
アップファイルであり、世代「2」、世代「3」は世代
が繰り上がるものとする。
1 is a block diagram showing an embodiment of a file control method according to the present invention. In the figure, 1 is an uncorrected file, 2 is a screen editor whose detailed configuration is described below, 3 is a modified file, 4 is a new backup file, 5 is, for example, a generation "1", a generation "2" and a generation. It is an old backup file that saves three files of "3". The generation "1" is the oldest old backup file, and the generations "2" and "3" are advanced.

【0007】上記画面エディタ2において、6は下記の
ファイル制御部13から出力した読み取り要求を受けて
修正前ファイル1を読み込み、読み込みデータを下記の
ファイル制御部13に出力する読み取り制御部、7は読
み込まれた修正前ファイル1をユーザーのキーボード操
作により修正する修正部、8はこの修正部7で修正され
たデータを保持するデータ保持部、9はセーブを起動す
るとバックアップ作成指示を出力するセーブ起動部、1
0はテキストデータや修正前ファイルをファイルに書き
込むデータ書き込み部である。
In the screen editor 2, 6 is a read control unit for receiving the read request output from the following file control unit 13 to read the uncorrected file 1 and outputting the read data to the following file control unit 13, and 7 is a read control unit. A correction unit that corrects the read uncorrected file 1 by the keyboard operation of the user, 8 is a data holding unit that holds the data corrected by the correction unit 7, and 9 is a save start that outputs a backup creation instruction when the save is started Part, 1
Reference numeral 0 is a data writing unit that writes text data and an uncorrected file to the file.

【0008】11は図2に示すように、バックアップフ
ァイル数セット部12を備え、環境設定メニューが出た
とき、このバックアップファイル数セット部12に何世
代まで(この実施例では世代「1」、世代「2」、およ
び世代「3」の3ファイル)保存するかの設定をユーザ
が行うための環境設定部、13はその詳細な構成を図2
に示すように、ファイル数のカウント、保存ファイル削
除の判断およびファイル生成指示を管理するファイル制
御部、14は削除指示された旧バックアップファイルを
削除する削除部である。
As shown in FIG. 2, 11 is provided with a backup file number setting unit 12, and when the environment setting menu appears, the number of generations (in this embodiment, generation "1", The environment setting unit for the user to set whether to save the three files of the generation "2" and the generation "3"), and 13 is a detailed configuration thereof.
As shown in, the file control unit that manages the number of files, determination of deletion of saved files, and file generation instruction, and 14 is a deletion unit that deletes the old backup file for which deletion has been instructed.

【0009】なお、前記ファイル制御部13は、図2に
示すように旧バックアップファイル5のファイル数をカ
ウントするファイルカウント部15と、環境設定部11
のバックアップファイル数セット部12に設定された世
代数とこのファイルカウント部14でカウントした値と
を比較し、指定ファイル数に達し、一致した場合、削除
指示16Aを出力し、指定ファイル数に達せず、不一致
の場合、非削除指示16Bを出力するファイル保持判断
部16と、この削除指示16Aを受けて最も世代の古い
ファイル(現バックファイル中で一番古いファイル)に
対して削除するように削除部14に指示するファイル削
除指示部17と、この非削除指示16Bを受けてデータ
書き込み部10に書き込み指示を出すファイル作成指示
部18とから構成されている。
The file control unit 13 includes a file counting unit 15 for counting the number of old backup files 5 and an environment setting unit 11 as shown in FIG.
The number of generations set in the backup file number setting unit 12 is compared with the value counted by the file counting unit 14, and when the number of specified files is reached and when they match, a deletion instruction 16A is output and the number of specified files is reached. If there is a mismatch, the file holding determination unit 16 that outputs the non-deletion instruction 16B and the deletion instruction 16A are received to delete the oldest file (oldest file in the current back files). It comprises a file deletion instructing section 17 for instructing the deletion section 14 and a file creation instructing section 18 for receiving the non-deletion instruction 16B and issuing a writing instruction to the data writing section 10.

【0010】なお、環境設定部11において、世代の指
示をしない場合には、そのバックアップファイル数セッ
ト部12に「1」がセットされ、旧バックファイルは常
に1つの世代のみの保存となる。
In the environment setting unit 11, if the generation is not instructed, "1" is set in the backup file number setting unit 12, and the old back file is always saved in only one generation.

【0011】次に上記構成によるファイル制御方式の動
作について説明する。まず、画面エディタ2の読み取り
制御部6は、修正前ファイル1を読み込む。そして、修
正がある場合、修正部7において、ユーザのキーボード
操作により修正する。一方、画面エディタ2の環境設定
メニューにより、ユーザはバックアップファイルを何世
代まで保存するかの指定を行うが、実施例では世代
「1」、世代「2」、世代「3」のため、「3」を指定
すると、その指定されたファイル数(世代数)「3」が
バックアップファイル数セット部12(図2参照)にセ
ットされる。
Next, the operation of the file control system having the above configuration will be described. First, the reading control unit 6 of the screen editor 2 reads the uncorrected file 1. Then, if there is a correction, the correction unit 7 corrects it by the keyboard operation of the user. On the other hand, the user specifies the number of generations of the backup file to be saved from the environment setting menu of the screen editor 2. In the embodiment, since the generation "1", the generation "2", and the generation "3", "3" is set. Is designated, the designated number of files (number of generations) "3" is set in the backup file number setting unit 12 (see FIG. 2).

【0012】そして、修正部7で修正されたデータはデ
ータ保持部8に保持される。このデータ修正後、セーブ
を起動すると、セーブ起動部9からファイル制御部13
にバックアップ作成指示が出される。そこで、このファ
イル制御部13は、このバックアップ作成指示を受け
て、読み取り制御部6に読み出し要求を出す。このた
め、この読み取り制御部6は修正前ファイル1を読み込
み、読み込みデータをファイル制御部13に送出する。
そして、このファイル制御部13のファイルカウント部
15は、旧バックアップファイル5のファイル数をカウ
ントする。
The data corrected by the correction unit 7 is held in the data holding unit 8. After the data is corrected, when the save is started, the save start unit 9 changes the file control unit 13
Will be instructed to create a backup. Therefore, the file control unit 13 receives the backup creation instruction and issues a read request to the read control unit 6. Therefore, the read control unit 6 reads the uncorrected file 1 and sends the read data to the file control unit 13.
Then, the file counting unit 15 of the file control unit 13 counts the number of old backup files 5.

【0013】そして、ファイル保持判断部16は前記の
バックアップファイル数セット部12にセットされた値
「3」と、ファイルカウント部15でカウントした値と
を比較し、指定ファイル数に達し、一致している場合に
は、ファイル削除指示部17に削除指示16Aを出力す
る。このファイル削除指示部17は、この削除指示16
Aを受けて、最も世代の古いファイル(現バックアップ
ファイル中で一番古いファイル、)すなわち世代「1」
を削除するように削除部14に指示する。
Then, the file holding determination unit 16 compares the value "3" set in the backup file number setting unit 12 with the value counted by the file counting unit 15 to reach the designated number of files, and they match. If so, a deletion instruction 16A is output to the file deletion instruction unit 17. This file deletion instructing unit 17
In response to A, the oldest generation file (oldest file in the current backup file), that is, generation "1"
The deletion unit 14 is instructed to delete.

【0014】そこで、この削除部14は、旧バックアッ
プファイル5の世代「1」を削除する。この世代「1」
の削除により、旧バックアップファイル5の世代が繰り
上がり、世代「2」は世代「1」になり、世代「3」は
世代「2」となる。次に、前記ファイル保持判断部16
は上述の比較結果、指定ファイル数に達していず、不一
致の場合、ファイル作成指示部18に非削除指示16B
が出力する。そこで、ファイル作成指示部18は、この
非削除指示16Bあるいは前記の削除処理終了後、デー
タ書き込み部10へ書き込み指示を出力する。
Therefore, the deleting unit 14 deletes the generation "1" of the old backup file 5. This generation "1"
By deleting, the generation of the old backup file 5 is advanced, the generation "2" becomes the generation "1", and the generation "3" becomes the generation "2". Next, the file holding determination unit 16
If the number of files does not reach the designated number as a result of the above comparison and they do not match, the file creation instructing unit 18 is instructed not to delete 16B.
Will output. Therefore, the file creation instruction unit 18 outputs a write instruction to the data writing unit 10 after the non-deletion instruction 16B or the above-described deletion processing is completed.

【0015】このバックアップファイル名は、上書きし
ないように世代毎のファイル名が生成される。読み込み
データはデータ書き込み部10へ送出され、新バックア
ップファイル4が作成される。この作成された新バック
アップファイル4は、世代「3」となり、バックアップ
ファイルを3世代保存していることになる。
As the backup file name, a file name for each generation is generated so that it will not be overwritten. The read data is sent to the data writing unit 10 and the new backup file 4 is created. The created new backup file 4 has the generation "3", which means that the backup file has been stored for three generations.

【0016】なお、バックアップファイル数を「5」に
セットした場合は、旧バックアップファイル5は削除さ
れない。よって、新バックアップファイル4は、世代
「4」となる。データ保持部8に保持されている修正後
データは、データ書き込み部10を経由し、修正後ファ
イル3に書き込まれる。
When the number of backup files is set to "5", the old backup file 5 is not deleted. Therefore, the new backup file 4 is the generation “4”. The corrected data held in the data holding unit 8 is written in the corrected file 3 via the data writing unit 10.

【0017】[0017]

【発明の効果】以上詳細に説明したように、本発明に係
るファイル制御方式によれば、ファイル制御部を画面エ
ディタに設けることにより、指定世代のバックアップフ
ァイルを保存することができ、数世代前のファイルを参
照することも可能となる。そして、データ修正時に修正
ミスによりデータおよびプログラムが壊れてしまい、前
の状態に戻したい場合に、戻したい世代までデータを戻
すことができ、修正中データの信頼性を上げることがで
きる。しかも、指定世代数の保存なので、ファイル数が
多くなりすぎることもない。また、修正作業者の作業効
率を上げることができるなどの効果がある。
As described above in detail, according to the file control method of the present invention, by providing the file control unit in the screen editor, it is possible to save the backup file of the designated generation. It is also possible to refer to the file. Then, when the data is corrected, the data and the program are broken due to a correction mistake, and when the user wants to return to the previous state, the data can be returned to the generation to be returned, and the reliability of the data being corrected can be improved. Moreover, because the specified number of generations is saved, the number of files does not become too large. Further, there is an effect that the work efficiency of the correction worker can be improved.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係るファイル制御方式の一実施例を示
すブロック図である。
FIG. 1 is a block diagram showing an embodiment of a file control system according to the present invention.

【図2】図1の環境設定部およびファイル制御部の詳細
な構成を示すブロック図である。
FIG. 2 is a block diagram showing a detailed configuration of an environment setting unit and a file control unit in FIG.

【符号の説明】[Explanation of symbols]

1 修正前ファイル 2 画面エディタ 3 修正後ファイル 4 新バックアップファイル 5 旧バックアップファイル 6 読み取り制御部 7 修正部 8 データ保持部 9 セーブ起動部 11 環境設定部 13 ファイル制御部 14 削除部 1 File before correction 2 Screen editor 3 File after correction 4 New backup file 5 Old backup file 6 Read control section 7 Correction section 8 Data holding section 9 Save startup section 11 Environment setting section 13 File control section 14 Delete section

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 修正前ファイルを画面エディタで修正す
るファイル制御方式において、何世代までファイルを保
存しておくかを指定し、その指定されたファイル数を設
定する環境設定部と、バックアップファイルのファイル
数のカウント、保存ファイル削除の判断およびファイル
生成指示を管理するファイル制御部と、テキストデータ
や修正前ファイルをファイルにセーブするデータ書き込
み部とを備え、修正前ファイルを環境設定部に設定した
ファイル数により、何世代までファイルを保存しておく
かを判断し、保存ファイル数が指定数に達していると
き、古い世代のファイルを削除し、修正前ファイルを最
新世代のバックアップファイルとしてセーブすることを
特徴とするファイル制御方式。
1. In a file control method for modifying a file before modification with a screen editor, an environment setting section for designating the number of generations of files to be saved and setting the designated number of files, and a backup file A file control unit that manages the number of files, determination of deletion of saved files and file generation instruction, and a data writing unit that saves text data and unmodified files to files are set in the environment setting unit. Depending on the number of files, determine how many generations to save the file, and when the number of saved files reaches the specified number, delete the old generation file and save the uncorrected file as the backup file of the latest generation. A file control method characterized in that
JP4070101A 1992-02-21 1992-02-21 File control system Pending JPH05233404A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4070101A JPH05233404A (en) 1992-02-21 1992-02-21 File control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4070101A JPH05233404A (en) 1992-02-21 1992-02-21 File control system

Publications (1)

Publication Number Publication Date
JPH05233404A true JPH05233404A (en) 1993-09-10

Family

ID=13421808

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4070101A Pending JPH05233404A (en) 1992-02-21 1992-02-21 File control system

Country Status (1)

Country Link
JP (1) JPH05233404A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793200A (en) * 1993-09-27 1995-04-07 Nec Corp File managing system
JPH11194984A (en) * 1997-12-27 1999-07-21 Canon Inc Document output device and control method therefor
JP2004206666A (en) * 2002-10-30 2004-07-22 Nippon Digital Kenkyusho:Kk Backup data management system, management method for backup data, and backup data management program
US7788232B2 (en) 2004-09-14 2010-08-31 Konica Minolta Business Technologies, Inc. File management program for overwriting file
JP2010282383A (en) * 2009-06-04 2010-12-16 Hitachi Ltd Computer system for executing emulator emulating random access storage medium to virtual sequential access storage medium
JP2011210056A (en) * 2010-03-30 2011-10-20 Sanyo Electric Co Ltd Backup data management device
JP2011248842A (en) * 2010-05-31 2011-12-08 Sanyo Electric Co Ltd Backup data management device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0793200A (en) * 1993-09-27 1995-04-07 Nec Corp File managing system
JPH11194984A (en) * 1997-12-27 1999-07-21 Canon Inc Document output device and control method therefor
JP2004206666A (en) * 2002-10-30 2004-07-22 Nippon Digital Kenkyusho:Kk Backup data management system, management method for backup data, and backup data management program
US7788232B2 (en) 2004-09-14 2010-08-31 Konica Minolta Business Technologies, Inc. File management program for overwriting file
JP2010282383A (en) * 2009-06-04 2010-12-16 Hitachi Ltd Computer system for executing emulator emulating random access storage medium to virtual sequential access storage medium
JP2011210056A (en) * 2010-03-30 2011-10-20 Sanyo Electric Co Ltd Backup data management device
JP2011248842A (en) * 2010-05-31 2011-12-08 Sanyo Electric Co Ltd Backup data management device

Similar Documents

Publication Publication Date Title
JP2993528B2 (en) Text management and restoration method
JPH05233404A (en) File control system
JPH05113920A (en) Method and device for managing file
JPH08202603A (en) Document preparing device and document file compiling method
JPH05134910A (en) File control method/system
JP4261649B2 (en) Image processing apparatus, method, and recording medium
JPH05204733A (en) System for updating library
JPS58114149A (en) Electronic filing system
JPH0581096A (en) Page deletion system for electronic filing device
JP3178671B2 (en) File system and its file recovery method
JP2001142750A (en) Device and method for managing data file recording and recording medium
JPH07319859A (en) Retaining method for file in information processor
JP2005227983A (en) Information storage device
JPH01240943A (en) Data content recovery system
JP3079825B2 (en) Electronic computer equipment
JP2647044B2 (en) History management method
JPH0644249A (en) Operation environment storage system of document editing device
JPH05342210A (en) Event information history management system for editing device
JPH08171611A (en) Character recognizing system
JPH05250243A (en) Data processing system for extended storage device
JPH0581095A (en) Method for protecting file
JPH03110666A (en) Document processor
JPH11353159A (en) Computer, re-setup method for computer, and recording medium where re-setup program is recorded
JPH06187346A (en) Word processor
JP2001243483A (en) Editing method and recording medium with recorded program thereof