#include<stdio.h>
#include<conio.h>
#include<string.h>
struct emp{
#include<conio.h>
#include<string.h>
struct emp{
char name[10];
int age;
};
File handling concept
void NameAndAgeStoring(){
struct emp e;
FILE *p, *q;
p= fopen(“list.txt”,”a”);
q= fopen(“list.txt”,”r”);
printf(“enter the name and age”);
scanf(“%s %d”,e.name,e.age);
fprintf(p,”%s %d”,e.name,e.age);
fclose(p);
do{
fscanf(q,”%s %d”,e.name,e.age);
printf(“%s %d”,e.name,e.age);
}
while(!feof(q));
getch();
}
File handling concept – Create and store value
void file()
{
FILE *fp;
char ch;
fp = fopen(“names.txt”, “w”);
while( ( ch= getchar())!=EOF){
putc(ch,fp);
}
fclose(fp);
}
string length without strlen()
void stringCal(){
int i;
char str[1000];
printf(“enter string value n”);
scanf(“%s”,str);
for(i=0; str[i] != ‘