I have to write a low level program in C to simulate the TYPE command in dos.
I got half way through, but i am not able to print the contents of the file. also i tried to incorporate the feature that if the file contents are too big to be printed on one screen. the user is prompted to press any key to continue and the rest is printed.
void main(char *argv)
int inhandle, bytes,x;
inhandle = open(argv,O_RDONLY|O_BINARY);
printf(" END OF PAGE : PRESS ENTER ");