error in displaying file names from sd card

i am doing my mini project in arduino mega with utft and sd card slot. In that touch screen i am trying to display the names of the text file from sd card, and i can able to make up to some files only . I am displaying 4 text file names in the screen , i move to the next four name by pressing the next button which i created. """" THe problem is when i move to next file after 28th file a blank screen with an error msg 'no more files' which i created for showning end of the files in sd card.help me i cant understand where i made mistakes. thanks in advance and help me soon :~

i cant understand where i made mistakes.

Nor can we because you did not post your program so that we could see we could see what you are doing.

And how many files are there? 28 for all we know!