mirror of
https://github.com/reactos/reactos.git
synced 2024-11-02 21:09:15 +00:00
1e3d5d70e9
svn path=/trunk/; revision=26033
27 lines
363 B
C
27 lines
363 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
int i;
|
|
FILE* in;
|
|
char ch;
|
|
|
|
for (i=1; i<argc; i++)
|
|
{
|
|
in = fopen(argv[i],"r");
|
|
if (in == NULL)
|
|
{
|
|
printf("Failed to open file %s\n", argv[i]);
|
|
return(0);
|
|
}
|
|
|
|
while ((ch = fgetc(in)) != EOF)
|
|
{
|
|
putchar(ch);
|
|
}
|
|
fclose(in);
|
|
}
|
|
return 0;
|
|
}
|