Remove useless file.
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
#include <stdio.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
void main(int argc, char ** argv)
|
||||
{
|
||||
if (argc == 2)
|
||||
{
|
||||
// Try to open the file.
|
||||
int fd = open(argv[1], O_RDONLY, 42);
|
||||
if (fd > -1)
|
||||
{
|
||||
char c;
|
||||
// Put on the standard output the characters.
|
||||
while (read(fd, &c, 1)) putchar(c);
|
||||
putchar('\n');
|
||||
putchar('\n');
|
||||
close(fd);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("%s: cannot find the file.\n\n", argv[1]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("Usage: more file\n\n");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user