test.c
327 Bytes
#include <string.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdlib.h>
void recup_num(){
FILE* fd;
int num_port;
fd=fopen("num_count.txt","r");
fscanf(fd, "%d", &num_port);
printf("num = %d \n", num_port);
fclose(fd);
}
int main()
{
recup_num();
return 0;
}