Hello Every one,
I need to write a program to copy a part of a String from a specified
place.
Eg: if the first String looks like "This is a C program"
I need to extract the part of "C program"
How can I do this.Please help me.
Can I modify the below program
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int main()
{
FILE *f;
char i=0;
char *c;
char d[256];
if((f=fopen("D:\\data\\def.txt","r"))==NULL){
printf("File can't open.\n");
}
else{
while((c=fgetc(f))!=EOF){
printf("%c",c);
}
}
}