Direct Access
Sequential Access
Forward and Backward
1 Million Records
3 Reads
hdrfmt *btopen(char *dbname, int rwflag, int lockflag);
ptrMyFile = btopen("myfile.bt",UPDT,LOCK);
| Value | Meaning | |
|---|---|---|
| READ | Read Only | |
| UPDT | Read/Write |
| Value | Meaning | |
|---|---|---|
| LOCK | Lock the database | |
| TSTLOCK | If database not locked, open without locking | |
| NOLOCK | Do not lock the database |
ptrMyFile = btopen("myfile.bt",UPDT,LOCK);
if (ptrMyFile == NULL)
{
error processing
}