home *** CD-ROM | disk | FTP | other *** search
- #include <conio.h>
- #include <stdio.h>
-
- void main(int argc,char *argv[])
- {
- FILE *pfile;
- char buffer[80];
-
- if(argc<2) {
- printf("Syntax : ANSITYPE <filename.ext>\n");
- return;
- }
-
- pfile=fopen(argv[1],"rt");
- if(pfile==NULL) printf("Ei voi avata");
-
- while(!feof(pfile)) {
- fgets(buffer,80,pfile);
- printf("%s",buffer);
- }
- fclose(pfile);
- }
-
-