I don't think so .ini files arn't mean't to be used as a database there the old equivilent to the windows registry, used to store the program settings (route path) etc. look at the windows registry for an example.
a better way to do a flat-file database and not to not let anyone see the contents is to use a .dat file with the file system commands there a lot easier than ado or dao langerages given that its a flat file to create a record create a new type eg.:
Type NameRecord
name as string * 15
end Type
Public sub Writetodatabase(byval strname as string)
Dim Person as NameRecord
Dim Intfile as Integer
fido.name = strname
Intfile = freefile() 'sets Intfile equal to the next free filenumber
Open filename.dat for random Len=Len(nameRecord) as Intfile 'Len Is the size of the record
Put Intfile, [record number], fido 'record number is optional
close Intfile
End sub
and to retive a record
Public Function RetiveRecord as nameRecord
Dim Intfile as Integer
Dim Person as Record
Intfile = freefile()
Open filename.dat for random Len=Len(nameRecord) as Intfile
Get Intfile,[record number], Person
RetiveRecord = Person
End sub
Enter your message below
Sign in or Join us (it's free).