07.01.2016, 10:04
Use a funзгo Fread.
Код:
// Open "file.txt" in "read only" mode new File:handle = fopen("file.txt", io_read), // Initialize "buf" buf[128]; // Check, if the file is opened if(handle) { // Success // Read the whole file while(fread(handle, buf)) print(buf); // Close the file fclose(handle); } else { // Error print("The file \"file.txt\" does not exists, or can't be opened.");