title: Reading String from File with Objective C
body: <p>This one is weird. Hopefully I will ask the right question:</p>
  
  <p>I'm using an md5 method to create a checksum value which I then write to a file. Then afterwards I read the file using this:</p>
  
  <pre><code>NSString * id_From_File = [[NSString alloc]
                                    initWithContentsOfFile:path_to_ID
                                    encoding:NSUTF8StringEncoding
                                    error:&amp;error];
  </code></pre>
  
  <p>The result gets placed in a NSString which when I print gives me very strange behaviour. For example when I use this to print,</p>
  
  <pre><code>id_with_date = [NSString stringWithFormat:@"  %@  %@", dateString, id_From_File];
  </code></pre>
  
  <p>it will print both strings if dateString is placed in the first parameter and id_From_File in the second. If I switch them around (which I need to do) only id_From_File shows.</p>
  
  <p>Edit 1: Example of the switch:</p>
  
  <pre><code>id_with_date = [NSString stringWithFormat:@" %@  %@", id_From_File, dateString];
  </code></pre>
  
  <p>I strongly believe this has something to do with the encoding of the id_From_File string. </p>
  
  <p>Any knowledge!?</p>
  
  <p>Thanks, </p>