source:
CIVL/mods/dev.civl.com/examples/library/stdio/fprintf.cvl@
e49edeb
| Last change on this file since e49edeb was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 173 bytes | |
| Rev | Line | |
|---|---|---|
| [0286e4f] | 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.
