Mar 26, 2005 #1 EvilCabal Programmer Jul 11, 2002 206 CA Hello, How do I list all files in a specified directory. Can I use filters to get, let's say, only .txt files? Thanks a lot! Fred
Hello, How do I list all files in a specified directory. Can I use filters to get, let's say, only .txt files? Thanks a lot! Fred
Mar 26, 2005 #2 xwb Programmer Jul 11, 2002 6,828 GB Do you want it in a dialog or just as internal list for processing. If you want an internal list for processing, you need to set up If you want a file dialog use CFileDialog (MFC). Set the filter to .txt. There is an equivalent in SDK but I can't remember what it is called. For internal lists, look up findfirst and findnext or something very similar sounding on MSDN Upvote 0 Downvote
Do you want it in a dialog or just as internal list for processing. If you want an internal list for processing, you need to set up If you want a file dialog use CFileDialog (MFC). Set the filter to .txt. There is an equivalent in SDK but I can't remember what it is called. For internal lists, look up findfirst and findnext or something very similar sounding on MSDN