title: Randomly choosing a word from a text file in C
body: <p>I'm quite new at programming and I'm trying to code <a href="http://en.wikipedia.org/wiki/Hangman_%28game%29" rel="nofollow">Hangman</a>. I have 10 words saved in a textfile in the same folder as the code and I want the program to randomly choose a word and save that word into a character array. </p>
  
  <p>I've googled and looked around but I can't seem to figure out how to do it. Do I use something like <code>fopen()</code> and <code>rand()</code>? </p>