The program "fw" counts the word "word" in the file "word.txt": werner@work:~> cat word.txt wordrow ordrdro rdrordr droword werner@work:~> ./fw word word.txt solution1: start(1,1) steps: right right right solution2: start(1,1) steps: right right down solution3: start(1,1) steps: right down right solution4: start(1,1) steps: right down down solution5: start(1,1) steps: down right right solution6: start(1,1) steps: down right down ..... solution25: start(4,4) steps: right up right solution26: start(4,4) steps: right right up solution27: start(4,4) steps: right right right solution28: start(4,4) steps: left up up solution29: start(4,4) steps: left up left solution30: start(4,4) steps: left left up solution31: start(4,4) steps: left left left werner@work:~> |