<?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>I On Rails &#187; file path separators</title>
	<atom:link href="http://ionrails.com/tag/file-path-separators/feed/" rel="self" type="application/rss+xml" />
	<link>http://ionrails.com</link>
	<description>Keeping an &#039;I&#039; on RoR</description>
	<lastBuildDate>Sat, 14 Jan 2012 07:17:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Ruby File Path Separators</title>
		<link>http://ionrails.com/2010/02/01/ruby-file-path-separators/</link>
		<comments>http://ionrails.com/2010/02/01/ruby-file-path-separators/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 01:33:30 +0000</pubDate>
		<dc:creator>navid</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[file path separators]]></category>

		<guid isPermaLink="false">http://ionrails.com/?p=350</guid>
		<description><![CDATA[File path separators on Unix systems and Windows are different. On Unix, a forward slash / is used and on Windows a backslash \ is used. However, when writing Ruby code you don&#8217;t need to worry about this; Just use the forward slash / character and it will be cross-platform for you. An even better [...]]]></description>
			<content:encoded><![CDATA[<p>File path separators on Unix systems and Windows are different. On Unix, a forward slash / is used and on Windows a backslash \ is used. </p>
<p>However, when writing Ruby code you don&#8217;t need to worry about this; Just use the forward slash / character and it will be cross-platform for you.</p>
<p>An even better option is to use File.join to join a paths together. The correct file path separator for the particular platform will be used. See <a href="http://ruby-doc.org/core/classes/File.html#M002545">File.join</a></p>
<p>When using the File.join method for absolute paths, the first argument to the join method must be an empty string.</p>
]]></content:encoded>
			<wfw:commentRss>http://ionrails.com/2010/02/01/ruby-file-path-separators/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

