Wednesday, December 23, 2009

File Tab

#include"stdio.h"
int main()
{
FILE *fpRead;
char ch;
int No_tab=0;
fpRead=fopen("E://WORK//FileTab//a.txt","r");
if(fpRead==NULL)
{
printf("File cant Opened");
}else if(fpRead!=NULL)
{
printf("Opened correctly...");
}
ch=fgetc(fpRead);
while(1)
{
if(ch==EOF)
break;
if(ch=='\t')
{
No_tab++;
}
ch=fgetc( fpRead );
}
fclose(fpRead);
printf("Total Numberof Tabs in file %d",No_tab);

return 0;

}

Monday, December 7, 2009

fast process

http://www.microsoft.com/windows/windowsmedia/howto/articles/optimize_web.aspx#performance_faststreaming