<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>CM &#187; Linux</title>
	<atom:link href="http://corymathews.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://corymathews.com</link>
	<description>Things I should remember and then some...</description>
	<lastBuildDate>Thu, 26 Jan 2012 16:27:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using C to Append text to a File using the Linux Command Line</title>
		<link>http://corymathews.com/using-c-to-append-text-to-a-file-using-the-linux-command-line/</link>
		<comments>http://corymathews.com/using-c-to-append-text-to-a-file-using-the-linux-command-line/#comments</comments>
		<pubDate>Mon, 23 Feb 2009 04:59:54 +0000</pubDate>
		<dc:creator>CoryMathews</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://corymathews.com/?p=248</guid>
		<description><![CDATA[Damn I think the title is almost as long as the entire post&#8230; Any way, here is a quick tip that will allow your c program to easily add text to the end of a file without ever having to deal with the file in your code. This is accomplished by a simple system call, [...]]]></description>
			<content:encoded><![CDATA[<p>Damn I think the title is almost as long as the entire post&#8230;</p>
<p>Any way, here is a quick tip that will allow your c program to easily add text to the end of a file without ever having to deal with the file in your code. This is accomplished by a simple system call, take a look at the following example.</p>
<pre name="code" class="sql">#include
int main() {
  system("ls &gt;&gt; 1.txt");
}</pre>
<p>This simple code will perform the ls command and redirect its output to the file 1.txt. If 1.txt does not exist it will create the file. If the file exists it will append the output from ls to the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://corymathews.com/using-c-to-append-text-to-a-file-using-the-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

