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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Simple text pixel data to array demo Unseen Machine 5 641 09-12-2025, 05:30 PM
Last Post: bplus
  Unique Random Array Program eoredson 5 826 07-10-2025, 10:29 AM
Last Post: DANILIN
  QB64_GJ_LIB ARRay Library grymmjack 3 957 08-21-2023, 12:50 PM
Last Post: mnrvovrfc
  An hash array dictonary step by step TempodiBasic 32 8,086 05-08-2023, 06:12 PM
Last Post: TempodiBasic
  Three-dimensional array Kernelpanic 20 4,146 01-08-2023, 05:39 PM
Last Post: TempodiBasic

Forum Jump:


Users browsing this thread: 1 Guest(s)