<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'file processing help!' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'file processing help!' posted on the 'C and C++' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 00:43:53 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 00:43:53 -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>file processing help!</title>
      <link>http://www.programmersheaven.com/mb/CandCPP/430454/430454/file-processing-help/</link>
      <description>Hi, okay I'm suppose to write a program that takes a text file(inputFile.txt) with a set format then the compiler will take the data and display it in a different format. &lt;br /&gt;
&lt;br /&gt;
The original format is:&lt;br /&gt;
Name: John Milton&lt;br /&gt;
Major: EE&lt;br /&gt;
GPA: 3.98&lt;br /&gt;
Name: Karl Lewis&lt;br /&gt;
Major: CS&lt;br /&gt;
GPA: 3.6&lt;br /&gt;
Name: Homer Simpson&lt;br /&gt;
Major: CE&lt;br /&gt;
GPA: 4.0&lt;br /&gt;
&lt;br /&gt;
and its suppose to look like this:&lt;br /&gt;
Name:			Major:		GPA:&lt;br /&gt;
John Milton		EE			3.98&lt;br /&gt;
Karl Lewis		CS			3.6&lt;br /&gt;
Homer Simpson   	CE			4.0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
void main() &lt;br /&gt;
{ &lt;br /&gt;
    FILE *fp; &lt;br /&gt;
    int c;&lt;br /&gt;
    fp = fopen( "C:\\inputFile.txt", "r" ); 	&lt;br /&gt;
    if(c == EOF)&lt;br /&gt;
        {&lt;br /&gt;
            printf("file does not exist.");&lt;br /&gt;
        }         &lt;br /&gt;
    while(c != EOF)&lt;br /&gt;
    {&lt;br /&gt;
        putchar(c);&lt;br /&gt;
        c = getc(fp);        &lt;br /&gt;
    }&lt;br /&gt;
    printf("\n");&lt;br /&gt;
    fclose( fp );   &lt;br /&gt;
}&lt;br /&gt;
I got this so far but I dont know how to format into a different way. Any help on what to do next?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/CandCPP/430454/430454/file-processing-help/</guid>
      <pubDate>Sat, 01 Dec 2012 13:39:06 -0700</pubDate>
      <category>C and C++</category>
    </item>
  </channel>
</rss>