In MSDOS, it's very easy to get a list of files with a restriction in the name, for example its suffix.
and you can send the result to an output stream other than the screen, for example, a file
I already know how to use the olden Macintosh file retrieval dialog (SFGetFile) and perform a restriction by file type, but what if I just wanted a *list* of those files, outside of the context of that dialog with canned behavior?
My use case: as soon as my app launches, load a bunch of MacPaint files (or PICT files) in the same folder as the app, within reason (stop before memory runs out).
INI:
dir *.txt
and you can send the result to an output stream other than the screen, for example, a file
Diff:
dir *.txt > results.txt
I already know how to use the olden Macintosh file retrieval dialog (SFGetFile) and perform a restriction by file type, but what if I just wanted a *list* of those files, outside of the context of that dialog with canned behavior?
My use case: as soon as my app launches, load a bunch of MacPaint files (or PICT files) in the same folder as the app, within reason (stop before memory runs out).