Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get Next Filename into a string (or array)
#1
I need to open each of the files present in a given folder/directory and process them one by one.

A crude way would be to use DIR to create a text file containing all of the file names, then read that to obtain each of the filenames, line by line.

However, I'm wondering if QB64 has a function to Get Next Filename into a string that can be called in a loop until there are no more files in the directory?
Reply
#2
Hi, use direntry.h by Steve for get all files in directory to array. Dir to file returns different results depending on the version used operating system. Direntry.h is here: https://qb64phoenix.com/forum/showthread.php?tid=68


Reply
#3
Great. Thanks!
Reply




Users browsing this thread: 2 Guest(s)