thanks people for ur kind support ...
and vart i am really sorry i am jus a beginner and my programming teacher sux .. so i dont know a damn about it .. wht evr i have studied is by my self ... i m...
Type: Posts; User: ali_1234
thanks people for ur kind support ...
and vart i am really sorry i am jus a beginner and my programming teacher sux .. so i dont know a damn about it .. wht evr i have studied is by my self ... i m...
#include <stdio.h>
int main ()
{
int i,a[10],val,n=0,max,min;
FILE *fi,*fo;
if((fi=fopen("indata.txt","r"))==NULL)
{
printf("Error in opening the file!!!\n");
return 1;
i am getting an output file now but the problem is min value is always zero and max mum value is some number...0814...
now again im stuck ...
if i use return one after fscanf then its reading only the fist number from input file and after i press enter the program terminates...
i m using borland as my compiler
#include <stdio.h>
int main ()
{
int i,a[10],val,n=0,max,min;
FILE *fi,*fo;
if((fi=fopen("indata.txt","r"))==NULL)
{
printf("Error in opening the file!!!\n");
return 1;
no all other programs are compiling ... and the example u have given even tried that its also working...
but only my project program isn't working...
please help ... my mind is just stuck cant...
i tried all the above solution u people gave.. still when i compile i dont get any output nor it shows any error ...
thank you people for your support .. but i am still not getting any output is...
still the progrm isn't working while compiling it juz blinks and goes away... and i dont get any out put file :( :( ... i evn tried 'getch ();' ... still nothing happnd :( :(...
i copied it from borland directly over here thtz y it showed like this and its a project so i have to make it presentable and readable .. so thats why its like this
this is my school project i think i have almost completed it .. i have to input data from external file and write it in other out put file... i have to fine the max and min of the given data in the...
this program is my project and got to submit it by next week .. people please help
the program is to write a program which read 10 numbers from a file indata.txt, find the minimum and maximum value,...