Sorry bout that,
Here is the code:
#Include <stdio.h>
#define KMS_PER_MILE 1.609
int
main (void)
{
double miles,kms;
FILE *inp,*outp;
inp = fopen ("c: distance.txt", "r");
outp = fopen ("c: distout.txt", "w");
fscanf (inp, "%lf", &miles);
fprintf(outp, "The distance in miles is %.2f.\n", miles);
kms = KMS_PER-MILE * miles;
fprintf (outp, "That equals %.2f kilometers.\n", kms);
fclose(inp);
fclose (outp);
return (0);
}
The code when ran crashes and outputs error message ***process returns 255***.
Thanks for any help you can give in advance.