Tentativo

From Sistemi Operativi
Revision as of 03:23, 26 October 2013 by Patti (talk | contribs) (Created page with "<syntaxhighlight lang="csharp"> →‎funziona solo se il nome del programma e' quello in fopen: #include <stdio.h> int main(void){ char c; FILE *f; if (f=fopen("questo.c", ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
/* funziona solo se il nome del programma e' quello in fopen */
#include <stdio.h>
int main(void){
	char c;
	FILE *f;
	if (f=fopen("questo.c", "r")){
		while ((c=getc(f))!=EOF)
			printf("%c", c);
		fclose(f);
	}
	return  0;
}