Added file opening

Trying to get the file open works correct, using random number too. But
reading out the words makes the program crash..