2/14/2023 0 Comments 010 editor m2 template![]() Printf( "Num dirs = %d\n", fl.dircount ) Printf( "Num files = %d\n", fl.filecount ) TFileList fl = FindFiles( "C:\\temp\\", "*.zip" ) The dircount variable indicates how many sub-directories exist and an array of dir variables contains a dirname string for each directory. The TFileList also contains a list of sub-directories in the given directory. The results are returned in a TFileList structure which has a filecount variable indicating the number of files that match the filter, and an array of file variables which each contain a string filename. The filter can contain the wildcard characters * and ? and can contain multiple filters separated by semi-colons (for example, "*.cpp *.c *.h"). This function scans the given directory dir and returns all files that match the filter. TFileList FindFiles( string dir, string filter ) Returns the size of the current file in bytes. Returns true if the current read position is at the end of the file. Requires 010 Editor v13.0 or higher for DISASM_M68K constants.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |