title: Read a word from a file one character at a time then create a word from characters
body: <p>So basically I have to take a command line argument which is a file and read the words one character at a time. I then have to take the characters and basically recreate those words into a variable that I can use to pass into a function I will use later on. I am having trouble trying to create the words I am adding the characters to an empty variable then printing it out but it just prints the characters out on a new line each time instead of the full word</p>
  
  <p>UPDATE:: Code works, however it is printing basically a sentence I need it to print the words so I tried adding a new line statement but that does nothing</p>
  
  <pre><code>
  argc = len(sys.argv)
  
  cmdlength = argc - 1
  
  if cmdlength != 2:
      print ("Usage error, expected 2 args got " + str(cmdlength))
      exit()
  else:
      word = ""
      with open(sys.argv[1],"r") as fh: 
          while True:
              ch=fh.read(1)
              if not ch:
                  #print("End of file")
                  break
              word += ch
          print(word, "\n")
  </code></pre>