#include<stdio.h>
#include <unistd.h>
main(){
char filename[] ;
char ch;
int speed;
printf("\n\nEnter the file name : ");
scanf("%s",filename);
printf("\n\nEnter the Speed (in milli seconds) : ");
scanf("%d",&speed);
printf("\n\n\n\n\n\n\n");
FILE *f = fopen(filename,"r");
while( (ch = getc(f)) != EOF){
printf("%c",ch);
usleep(10000*speed);
fflush(stdout);
}
fclose(f);
}
We all like to show off ourself in front of people and you want people to think you are a PRO Coder. then you definitely require such kind of codes which makes the screen busy. just run the above 'C' code and act you are typing.
copy a file you want to display
#include <unistd.h>
main(){
char filename[] ;
char ch;
int speed;
printf("\n\nEnter the file name : ");
scanf("%s",filename);
printf("\n\nEnter the Speed (in milli seconds) : ");
scanf("%d",&speed);
printf("\n\n\n\n\n\n\n");
FILE *f = fopen(filename,"r");
while( (ch = getc(f)) != EOF){
printf("%c",ch);
usleep(10000*speed);
fflush(stdout);
}
fclose(f);
}
We all like to show off ourself in front of people and you want people to think you are a PRO Coder. then you definitely require such kind of codes which makes the screen busy. just run the above 'C' code and act you are typing.
copy a file you want to display
Comments
Post a Comment