Are you getting errors or something?
its not outputting anything
U are doing some non-standard and bad practices here :
Do not use global variables
main()
should be int
U should not loop through eof()
Can you show what should be the output and what does animals.dat
looks like
This is the animals.dat file
tiger
dog
racoon
zebra
aardvark
hippopotamus
cat
and it should print out
tttttttttttttttttttt
iiiiiiiii
iiiiiiiii
ggggggg
ggggggg
ggggggg
eeeee
eeeee
eeeee
eeeee
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
rrrrrrrrrrrrrrrrr
dddd
ooooooooooooooo
ooooooooooooooo
ggggggg
ggggggg
ggggggg
rrrrrrrrrrrrrrrrr
etc.etc.etc
and so on out professor said to loop through the file one char at a time and operating on to each on printing it out.