source:
CIVL/mods/dev.civl.com/examples/library/stdio/fprintf.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 173 bytes | |
| Line | |
|---|---|
| 1 | #include<stdio.h> |
| 2 | |
| 3 | int main() { |
| 4 | FILE *fpt = fopen("output","a"); |
| 5 | int a[5]={1,2,3,4,5}; |
| 6 | |
| 7 | for(int i=0; i<5; i++) { |
| 8 | fprintf(fpt,"%d\n",a[i]); |
| 9 | } |
| 10 | fclose(fpt); |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
