Kids are useful for something.
I got my young fresher windows kiddie to apply his (little) knowledge of
C to your file. We got it compiled, but it keeps throwing
Damn, couldn't open input file!
errors. It can open the input file. It's this bit
/* Make this how long you want the lines to be */
> #define MAX_LINE_LENGTH 80
>
> int main(void)
> {
> FILE *fp1;
> FILE *fp2;
>
> char c;
> char c2;
>
> int counter;
> int endofline;
>
> if ((fp1 = fopen("inputfile.txt", "r")) == NULL)
> {
> puts("Damn, couldn't open input file!");
> return -1;
> }
Can one put $1 and $2 for the files, or something similar?
--
With best Regards,
Declan Moriarty.
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page