#include<stdio.h>
#include<conio.h>
void main()
{
FILE *fs;
char ch;
clrscr();
fs=fopen("peer.txt","r");
if(fs==NULL)
{
printf("source file cannot open");
exit(0);
}
while(1)
{
ch=fgetc(fs);
if(ch==EOF)
break;
else
{
printf("%c",ch);
fseek(fs,1,SEEK_CUR);
}
}
fclose(fs);
getch();
}
/*ad s
yuqup vvbbzxnlg;fiet
fhr
Type EXIT to return to Turbo C++. . .Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.
C:\TC\BIN>type peer.txt
afda asd
a tyouqqpurpq cv.v bnbvz,xvnalkgh;afqiwept
dfshery
C:\TC\BIN>exit
*/
/*ad s
yuqup vvbbzxnlg;fiet
fhr */
No comments:
Post a Comment