Storing Ir codes on sdcard

Hood day

I hope someone can point me in the right direction.

I need to store ir codes onto a sd card and be able to read a specific code from the card when needed.

I want to uses 2 methods to store the data.
1 = learn the row code and store it and replay it when necessary.(works on epromm but are to small for the amount of codes
needed.
2 = I also need to store LIRC codes (these can be in a separate file) and recall them when i need it.

I know there are diffident methods to store data to sdcard.

But my thinking is to store the codes an a indexed text or cvs file- call the index to get ir code.This way you can change and update the LIRC data from a pc.

something like
1 321321312 tv on
2 343242343 tv off
3 343254355 av 1

Is there a way to do this?

I know there might be a second option by storing data directly to the sdcard with raw data(I will also consider this method)
I believe the extended database library should work here, but don't know if it will work for this application.Can't find any examples where the sdcard are used.

I am just looking for guidance and if it is possible to store the data in this way, could not find conclusive information on Google
Or other suggestions that will have a similar outcome.

I am still new to Arduino and programing so any assistance would be appreciated.

But my thinking is to store the codes an a indexed text or cvs file- call the index to get ir code.This way you can change and update the LIRC data from a pc.

If all the records are the same length, getting to the start of the nth record is easy. If they are different length, then the file needs to be read character by character to locate the end of each record.

I believe the extended database library should work here

Which "extended database library"? Does that store data in files on SD cards?