#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE* pFile;
double d;
char s[100];
pFile
= fopen("data1.txt", "wt"); if (pFile == NULL) {
return 1;
}
for (d = 0.1; d <= 10.0; d += 0.1) {
}
pFile
= fopen("data1.txt", "rt"); if (pFile == NULL) {
return 1;
}
while (fgets(s
, _countof
(s
), pFile
)) { }
return 0;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19XQVJOSU5HUwojaW5jbHVkZSA8c3RkaW8uaD4KI2luY2x1ZGUgPHN0ZGxpYi5oPgoKaW50IG1haW4oKQp7CglGSUxFKglwRmlsZTsKCWRvdWJsZQlkOwoJY2hhcglzWzEwMF07CgoJcEZpbGUgPSBmb3BlbigiZGF0YTEudHh0IiwgInd0Iik7CglpZiAocEZpbGUgPT0gTlVMTCkgewoJCXJldHVybiAxOwoJfQoJZm9yIChkID0gMC4xOyBkIDw9IDEwLjA7IGQgKz0gMC4xKSB7CgkJZnByaW50ZihwRmlsZSwgIiVmXG4iLCBkICogZCk7Cgl9CglmY2xvc2UocEZpbGUpOwoKCXBGaWxlID0gZm9wZW4oImRhdGExLnR4dCIsICJydCIpOwoJaWYgKHBGaWxlID09IE5VTEwpIHsKCQlyZXR1cm4gMTsKCX0KCXdoaWxlIChmZ2V0cyhzLCBfY291bnRvZihzKSwgcEZpbGUpKSB7CgkJZnB1dHMocywgc3Rkb3V0KTsKCX0KCWZjbG9zZShwRmlsZSk7CglyZXR1cm4gMDsKfQo=