SD library, printing directory line by line

I am using a nano every with an 128x64 OLED, the arduino SD card shield and a rotary encoder for navigation. I want to store configuration files on the SD to be loaded into to the arduino for different jobs.

Where I am stuck right now is, what is the best method to navigate the the SD directory? I imagine it as having a line displaying the current file selected with a turn of the encoder moving through the directory. The smoothest method, i assume, is to load the entire directory into an array. In the beginning there will only be a handful of configurations to worry about, but the number will get into the hundreds over the course of a year or so. I am very new to coding and electronics, will an char* array happily hold that?

The other method and one I didn't see a clear option for, would be to load a range of lines into an array then adjust that array as i move through pages of options. My problem here is if i get to say page 3 amd page 1s contents have been dumped from the array, how do I get those back if I go back to page 2. I only see a way to acquire the next item in a directory or to start from the beginning. Is there an easy method to identify read the previous item in a directory?

Thank you for any help.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.