title: Parse in text file for Google Protocol Buffer
body: <p>According to the example code <a href="https://developers.google.com/protocol-buffers/docs/cpptutorial">https://developers.google.com/protocol-buffers/docs/cpptutorial</a>, they show how to parse in a proto file that is in binary format. using </p>
  
  <pre><code>tutorial::AddressBook address_book;
  
  {
    // Read the existing address book.
    fstream input(argv[1], ios::in | ios::binary);
    if (!address_book.ParseFromIstream(&amp;input)) {
      cerr &lt;&lt; "Failed to parse address book." &lt;&lt; endl;
      return -1;
    }
  }
  </code></pre>
  
  <p>I tried removing the <code>ios::binary</code> for my input file that is in text format, but that still fails at reading in the file. What do I need to do to read in a proto file in text format?</p>