<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: crappy code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 12:45:04 GMT</pubDate>
    <description>DZone Snippets: crappy code</description>
    <item>
      <title>Include text files in C source</title>
      <link>http://snippets.dzone.com/posts/show/4597</link>
      <description>This includes the contents of myfile.txt into the char array text.&lt;br /&gt;&lt;br /&gt;Note: This only works if ALL lines in the file are enclosed in "s.&lt;br /&gt;&lt;br /&gt;Wrong myfile.txt:&lt;br /&gt;Hello world&lt;br /&gt;Goodbye world&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Right myfile.txt:&lt;br /&gt;"Hello world"&lt;br /&gt;"Goodbyle world"&lt;br /&gt;""&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;char text[] = {&lt;br /&gt;#include "myfile.txt"&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 01 Oct 2007 10:04:48 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/4597</guid>
      <author>scvalex (Alexandru Scvortov)</author>
    </item>
  </channel>
</rss>
