mirror of
https://github.com/Kaehvaman/OAIP.git
synced 2025-01-18 16:49:11 +04:00
27 lines
337 B
C
27 lines
337 B
C
|
#include <stdio.h>
|
||
|
#define BUF_LEN 128
|
||
|
|
||
|
void task1() {
|
||
|
char filepath[] = "files/text1.txt";
|
||
|
FILE* fin = fopen(filepath, "r");
|
||
|
if (fin == NULL) {
|
||
|
printf("Cannot open file %s\n", filepath);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
char buf[BUF_LEN];
|
||
|
while (fgets(buf, BUF_LEN, fin) != NULL) {
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
int main() {
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|