hi guys thanks for the replies but i think i got it...
the weird characters were carriage returns ($0d).

i used this code..
Code:
CRET VAR BYTE
CRET = $0D
SERIN2 VinTXD,84,[WAIT(CRET),STR FILE1\12 \CRET,WAIT(CRET), STR FILE2\12 \CRET,WAIT(CRET),STR FILE3\12 \CRET,WAIT(CRET),STR FILE4\12 \CRET]
as you can see i waited for every occurrence of the carriage return and saved the characters found between them into an array of string.
the weird characters that you can see at the end of some files names in the lcd are i think blank or null arrays since i allocated 12 array places for every file name found but not all of them would be 12 characters long..some are less.
now could you suggest any better way of storing these file names?
because i think if i do it this way, my pic microcontroller would quickly run out of space to save all of the characters from the file names and if the flash drive inserted is very populated then the files names not saved in the array would not be displayed.
Bookmarks