2/19/2023 0 Comments Tenkaichi 3 010 editor hex codes![]() ![]() Use this function to read data from one file and write the results to another file. The string is written at the current read/write position as given by FSeek and then the read/write position is moved forward. Use the function GetFileNum to get the index of a file. Performs a Printf starting from format and writes the resulting string to the file with index fileNum. 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 |