home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Rat's Nest 1
/
ratsnest1.iso
/
prgmming
/
c
/
ansitype.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-12-13
|
370b
|
24 lines
#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);
}