create_datafile_index(3alleg4) Allegro manual create_datafile_index(3alleg4)NAME
create_datafile_index - Creates an index for a datafile. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
DATAFILE_INDEX *create_datafile_index(const char *filename);
DESCRIPTION
Creates an index for a datafile, to speed up loading single objects out of it. This is mostly useful for big datafiles, which you don't
want to load as a whole. The index will store the offset of all objects inside the datafile, and then you can load it quickly with
"load_datafile_object_indexed" later. Use destroy_datafile_index to free the memory used by it again.
Note: If the datafile uses global compression, there is no performance gain from using an index, because seeking to the offset still
requires to uncompress the whole datafile up to that offset. Example:
DATAFILE_INDEX *index = create_datafile_index("huge.dat");
DATAFILE *object = load_datafile_object_indexed(index, 1234);
...
unload_datafile_object(object);
destroy_datafile_index(index);
RETURN VALUE
A pointer value which you can pass to load_datafile_object_indexed.
SEE ALSO destroy_datafile_index(3alleg4), load_datafile_object_indexed(3alleg4)Allegro version 4.4.2 create_datafile_index(3alleg4)
Hi:
First, this is not a homework problem. I just need enough of a hint to get this going...
My datafile (dataf.in) is made up of 10 sections. Each section begins with & and with &&
So it looks like this:-------------------------------------
§ion1
...etc...
&&
§ion2
...etc...... (4 Replies)
Dear friends:
I have a datafile contains 1 to 40 lines or i can be varied between 1 to 40. I want to split the datafile into smaller files:
if the datafile has 40 lines or more,
file1 contains line 1 to 12
file2 contains line 13 to 25
file3 contains line 26 to 28
file4 contains line 29... (4 Replies)
I am using this command to replace a text string in a data file:
sed -e 's/ab/test2/g' -e 's/abcxyz/test1/g' datafile
datafile contains:
ab
abcxyz
My results:
test2
test2cxyz
I want my results to be:
test2
test1 (7 Replies)
Dear sir
My hp-ux OS version is 11i (11.23) , and Oracle DB is 9i (9.2.0.6)
the problem that I can't create any file (DB datafile , export Dump file , Rman backup pices.... etc) under the OS biger than 2 GB
and the csh % limit check is
%limit
cputime unlimited
filesize ... (4 Replies)
Hi guys, my supervisor has asked me to solve the problem in 7 days, I've taken 3 days to think about it but couldn't figure out any idea.
Please give me some thoughts with the following problem,
I have index.database that has only index date:
1994
1995
1996
1997
1998
1999
I have... (6 Replies)
hello.
I'm somewhat a novice here so please be patient. My stumbling block when loading csvs into ORACLE tables is this:
I need to read a csv datafile, check several fields in each line, and if any of stated fields contain A ZERO only then replace it with a null/blank character.
I had a... (9 Replies)
Hi,
Is there any way we can find out which process is creating a partucular datafile.I know the user and group but i am just curios to know is there any way to find the process.
Thanks (7 Replies)
Hi all,
I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this:
1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently.
2) So I loaded datafile A... (10 Replies)
Hello,
I've tried searching the forum for an answer to my question, but without any luck...
I have a datafile looking simplified as follows:
01 02 03 04 05 06
07 08 09 10 11 12
13 14 15 16 17 18
19 20 21 22 23 24
I want to reverse it by rearranging all the numbers from last to... (16 Replies)
hi all
i have a datafile consists of fields seperated by colons. the fields are as follows : a) First and last name
b) Phone number
c) Address
d) Birth date
e) Salary
now i want to write a script naming lookup.sh using vi editor which... (4 Replies)
Sir, I have a big datafile in the given format. I have to extract the lines which are starting with ‘Chr’ followed by number like ‘Chr5’, ‘Chr25’ etc. and fix the range for each line by subtracting 10 from that number left and adding 10 to that number right. (or in other way; remove the lines... (5 Replies)
Have a textfile (regular updated) with informations about datafiles .
Each line is describing a datafile. Now I am trying to delete several specific lines in this textfile, which are defined before in a kind of removal list.
Can not find the mistake I have done in the script because in the... (5 Replies)
I have a datafile containing data in the following format
name1,employee_number1,cell1,home1,fax1
name2,employee_number2,cell2,home2,fax2
name3,employee_number3,cell3,home3,fax3
name4,employee_number4,cell4,home4,fax4
name5,employee_number5,cell5,home5,fax5
...
...
....
I would like... (6 Replies)
Hi,
Can you please tell me the Unix shell script for removing footer from the datafile while loading into external table using sqlloader
we will be skipping the header like this while creating the table
organization external
(
type oracle_loader
default directory directoryname... (5 Replies)