List:General Discussion« Previous MessageNext Message »
From:Idigoras Inaki Date:December 6 2000 3:37pm
Subject:creating a database from an ASCII file, with C/C++ API
View as plain text  
Hi,

I am new to MySQL, and I would like to know if I could use it for my
application. It will be written in C or C++, for Windows NT4.0 and Linux
OSes.

The aplication will be given a database in two ASCII files:
	-. DB.ini will contain the database format: the table names and
field names, with the number of characters of each field.
	-. DB.dat will contain the data, one register per line (each field´s
width is determined by DB.ini).

e.g.

DB.ini: two tables, the first with two fields (5 and 3 chars long)

[table1]
field1 5
field2 3
[table2]
field1 10

DB.dat: the data for the tables: table1 has three items or registers, and
table2 has two.

[table1]
abcde123
fghij456
aaaaattt
[table2]
1234567890
abcdefghij


Is it possible for my C/C++ program to create a MySQL database from this
input?


Thanks.

 __________________________________
 Iñaki Idigoras Igartua  <iidigoras@stripped>

Thread
creating a database from an ASCII file, with C/C++ APIIdigoras Inaki6 Dec