184
"C" Programming Guide For Optimus S/R
3.14 File Manipulation
There are many file manipulation routines available for programming the portable
terminals. These routines can help to manipulate the transaction data and ease the
implementation of database system.
Two types of file structures are supported:
Sequential structure called
DAT
file that is usually used to store transaction data.
Index structure that is usually used to store lookup data. Actually, there are two types of
index file. One is
DBF
for storing the original data records (data members), and the other
is
IDX
for sorting the records according to the associate key.
These two file structures will be further discussed later in this section.
3.14.1 File System
On each terminal, there is an on-board SRAM for data memory. This is the place where all
the system parameters, program variables, program stack, and file system resides.
3.14.2 Directory
The file system is flat, i.e. it does not support hierarchical tree directory structure, and no
sub-directory can be created. There is a limit for the total number of files, which includes all
DAT files as well DBF files and their associated IDX files.
Max. 255 files for the Optimus S and Optimus R
To get the information of the file directory, you can call
filelist()
.
3.14.3 File Name
A file name is a null terminated character string containing 1 ~ 8 characters (the null
character not included), which is used to identify the file in the system. There is no file
extension as in MS-DOS operation system.
Содержание Optimus R
Страница 1: ...Printed on 20 March 2006 C Programming Guide Version 3 04 02 Optimus S Optimus R...
Страница 6: ......
Страница 8: ...2 C Programming Guide For Optimus S R...
Страница 12: ...6 C Programming Guide For Optimus S R The flow is illustrated as shown below...
Страница 23: ...Chapter 2 Development Environment 17 Different types signed unsigned Different types same size...
Страница 24: ...18 C Programming Guide For Optimus S R...
Страница 220: ...214 C Programming Guide For Optimus S R See Also FlashSize free_memory...
Страница 232: ...226 C Programming Guide For Optimus S R 4 11 Implementation defined Limits limits h float h Refer to limit h and float h...
Страница 238: ...232 C Programming Guide For Optimus S R...