<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Help reading from a file in C' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Help reading from a file in C' posted on the 'Beginner C/C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 22:13:04 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 22:13:04 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Help reading from a file in C</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/429747/429747/help-reading-from-a-file-in-c/</link>
      <description>I'm trying to write a C program that takes 3 different inputs from the user (name, day, year) and then I fwrite it into a binary file in the following format "Name | day | year". Nothing complicated so far, its just "%s | %s | %s". &lt;br /&gt;
&lt;br /&gt;
However I also want the user to be able to access information from the said binary file. I,e the user can get a list of all the names. How would I go about so that the program reads the binary file and reads the "Name | day | year" and stores each of the elements into an array. (I want it to be an array so I can sort the names alphabetically (but that is another issue). &lt;br /&gt;
&lt;br /&gt;
Writing into the file seems relatively straight forward but I have no idea how to read from the file with the " | " dividing each parameter.&lt;br /&gt;
&lt;br /&gt;
Thanks in advance&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/429747/429747/help-reading-from-a-file-in-c/</guid>
      <pubDate>Mon, 08 Oct 2012 03:23:10 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: Help reading from a file in C</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/429747/429750/re-help-reading-from-a-file-in-c/#429750</link>
      <description>Read a line.&lt;br /&gt;
Look for the 1st |&lt;br /&gt;
Take the stuff before it and put it in NAME&lt;br /&gt;
Find the 2nd |&lt;br /&gt;
etc...&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/429747/429750/re-help-reading-from-a-file-in-c/#429750</guid>
      <pubDate>Mon, 08 Oct 2012 14:41:36 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
    <item>
      <title>Re: Help reading from a file in C</title>
      <link>http://www.programmersheaven.com/mb/beginnercpp/429747/429754/re-help-reading-from-a-file-in-c/#429754</link>
      <description>Im still very new to C. How exactly would I tell the program to take the stream before | and input it in NAME?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/beginnercpp/429747/429754/re-help-reading-from-a-file-in-c/#429754</guid>
      <pubDate>Tue, 09 Oct 2012 05:19:38 -0700</pubDate>
      <category>Beginner C/C++</category>
    </item>
  </channel>
</rss>