У нас вы можете посмотреть бесплатно C Program to Read the Integer value from File [ASCII TEXT] или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
int main() { // declare variable called "num" to store the value from file int num; // declare the file pointer to communicate with file FILE *ptr; //use fopen() function with read mode ["r"] to open the file // Enter the file path and mode if((ptr=fopen("H:\hello.txt","r"))==NULL) { printf("ERROR OPENING FILE !!!!!"); // use exit() function to mention the error status exit(1); } // use fscanf to store the file contents to "num " variable fscanf(ptr,"%d",&num); // print the file content using num variable printf("%d",num); //Close the file pointer using fclose() function fclose(ptr); } // Run the Program using ctrl+F5