Hi all. I have to import a text file in my handel-C source code. The content of the file .txt is an integer. To import the text file, without using chanin and extern keywords, I thought to create a file in C language as follows:
- posted
18 years ago
-- /* c_file.c */ #include unsigned int test() { unsigned int x; FILE *fp; fp=fopen("test.txt","r"); x=getc(fp); fclose(fp); return x; }