here's an example:
table PERSONS should have the fields: id, name, shoesize, eyecolor
store the values in a text file organized like this:
1 line holds 1 record
and within the record, fields are separated by |.
textfile persons could look like this:
1|Johnny Hasenreither|43|blue
2|Miriam Clatshner|39|green
[if you want to insert a string containing the separator character, mask it first, as you would do with ' when building sql statements]
data accessing:
read a table with: $table = file("table_persons.txt");
split values in a loop using: $record = explode("|", $table[$i])
storing data:
write data into an array, then implode values:
$linetowrite[$i] = implode("|", $newvalues);
in a loop, write $linetowrite into the table textfile.
i hope you nog got an idea ... it's not very comfortable, but technically it works.