- 註冊時間
- 2001-8-1
- 線上時間
- 9674 小時
- 閱讀權限
- 254
- 積分
- 5173
- 主題
- 210
- 精華
- 1
- 文章
- 6777
該用戶從未簽到 - 文章
- 6777
|
Re:【求助】火車時刻表的資料庫??
給你 pdb 的 file format
=========================================================
A .pdb file consists of a Database Header (78 bytes) followed by a table of Record Entry Headers (one for each database record). The data for all records follows the table of Record Entry Headers.
--- Database Header (78 bytes) ---
Field Bytes Value
----- ----- -----
DB Name 32 <Database Name>
Flags 2 $00, $00
Version 2 $00, $00
Creation Time 4 $06, $D1, $44, $AE
Modificaton Time 4 $06, $D1, $44, $AE
Backup Time 4 $00, $00, $00, $00
Modification Number 4 $00, $00, $00, $00
App Info Offset 4 $00, $00, $00, $00
Sort Info Offset 4 $00, $00, $00, $00
Type 4 <Database ID>
Creator 4 <Application ID>
unique ID seed 4 $00, $00, $00, $00
next record list id 4 $00, $00, $00, $00
Number of records 2 <Number of Records>
--- Record 0 Entry Header (8 bytes) --- (One entry for each record)
Field Bytes Value
----- ----- -----
Offset 4 <offset to record 0 from the beginning of the file>
Record attrib (1 byte)
& unique ID (3 bytes) 4 $40, $6F, $80, $00
.
.
.
--- Record n Entry Header (8 bytes) --- (One entry for each record)
Field Bytes Value
----- ----- -----
Offset 4 <offset to record n from the beginning of the file>
Record attrib (1 byte)
& unique ID (3 bytes) 4 $40, $6F, $80, $00
--- Record 0 Data --- (One entry for each record)
.
.
.
--- Record n Data --- (One entry for each record)
--- End of File ---- |
|