It works (at least my outputfile is not empty). I started with an empty data file before I could generate the weight file. Next it went smoothly.
Code:
wim@btd-techweb01:~/progs/lq507750$ ./lq507750 -o weight1 data1 out1
Unable to open file weight1 for reading
wim@btd-techweb01:~/progs/lq507750$ ./lq507750
** Select L(earning) or O(utput generation) **
L
How many dimensions does the input pattern have?: 2
How many dimensions does the output pattern have?: 3
How many hidden nodes will the network use?: 4
Enter the name of the training data file: data1
Unable to open file data1 for reading
wim@btd-techweb01:~/progs/lq507750$ touch data1
wim@btd-techweb01:~/progs/lq507750$ ./lq507750
** Select L(earning) or O(utput generation) **
L
How many dimensions does the input pattern have?: 2
How many dimensions does the output pattern have?: 3
How many hidden nodes will the network use?: 4
Enter the name of the training data file: data1
Enter the name of the output weight file: weight1
Total number of input samples?: 5
Max number of iterations in phase 1(enter a positive integer)?: 6
Max number of iterations in phase 2(enter a positive integer)?: 7
Enter 0 to use default values for learning rate parameters, enter 1 for user-specified values
(default learning rates decay exponentially from 0.3 to 0.01): 0
Elapsed time 0 milliseconds
wim@btd-techweb01:~/progs/lq507750$ ./lq507750 -o weight1 data1 out1
Elapsed time 10 milliseconds
wim@btd-techweb01:~/progs/lq507750$ ls -l
total 92
-rw-r--r-- 1 wim develop 0 2006-12-07 05:54 data1
-rwxr-xr-x 1 wim develop 23400 2006-12-07 06:03 lq507750*
-rw-r--r-- 1 wim develop 22390 2006-12-07 06:03 lq507750.c
-rw-r--r-- 1 wim develop 40000 2006-12-07 06:05 out1
-rw-r--r-- 1 wim develop 194 2006-12-07 06:05 weight1
wim@btd-techweb01:~/progs/lq507750$
There are a number of warnings when using the -Wall option when you compile the source code. You might want (or have to) to clear them out first.
PS gcc 3.3.4 on slackware 10.1