Hi
in this statement
FILE *f1;
f1=fopen("123456789.txt","w");
here the pgm should open the named file if it exists or should create a new one right, but it just creates a file with...
Type: Posts; User: Raghavan
Hi
in this statement
FILE *f1;
f1=fopen("123456789.txt","w");
here the pgm should open the named file if it exists or should create a new one right, but it just creates a file with...
Hi
I have declared this line in my pgm.
char *a=NULL,*b=NULL;
then i used
scanf("%s",a); even i tried gets(a);
its giving null pointer assignment error but pgm...
Hi
I wrote a c program where my input is a file and i store output also in a file. Everything works fine. But in my command prompt it shows null pointer assignment. but my output is not affected....
ptr=strrchr(path,'\\');
strncpy(path1,path,ptr-path);
path1[ptr-path]='\0';
strcat(path1,"\\file.txt");
output_file=fopen(path1,"w");
here path is some path of an input...
Hi
I give my input through a file. so in my program i get the path of the file from user and manipulate the data in it. i want to place the output also in a file in the same place as my input...
Windows xp. Am using Borlandc
I was not able to enter more than 128 characters in the output screen without hitting enter button. i want to enter number of lines without hitting enter.
Hi
I am trying a thing. in that i want to get lines of text which has special chars,numbers and chars and i dont want to allocate memory at the beginning. i want to allocate memory exactly needed...