Parent Directory
|
Revision Log
Initial revision
| 1 | mocchiut | 1.1 | #include <stdlib.h> |
| 2 | #include <stdio.h> | ||
| 3 | |||
| 4 | |||
| 5 | |||
| 6 | int main(){ | ||
| 7 | |||
| 8 | |||
| 9 | long dataLength; | ||
| 10 | int ERROR; | ||
| 11 | |||
| 12 | FILE *pFile; | ||
| 13 | pFile = fopen("DWTemp.dat", "r"); | ||
| 14 | |||
| 15 | if (pFile==NULL) exit (1); | ||
| 16 | |||
| 17 | // obtain file size. | ||
| 18 | fseek (pFile , 0 , SEEK_END); | ||
| 19 | dataLength = ftell (pFile); | ||
| 20 | rewind (pFile); | ||
| 21 | fclose (pFile); | ||
| 22 | return 0; | ||
| 23 | } |
| ViewVC Help | |
| Powered by ViewVC 1.1.23 |