<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to get a path and extension from a file</title>
	<atom:link href="http://www.sapflow.cz/archives/190/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sapflow.cz/archives/190</link>
	<description>Anything can be done, it&#039;s just a matter of time and money...</description>
	<lastBuildDate>Wed, 23 Nov 2011 20:49:32 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Pavel Jaroš</title>
		<link>http://www.sapflow.cz/archives/190/comment-page-1#comment-3642</link>
		<dc:creator>Pavel Jaroš</dc:creator>
		<pubDate>Thu, 01 Oct 2009 12:42:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.sapflow.cz/?p=190#comment-3642</guid>
		<description>Unfortunately it&#039;s not the perfect way how to parse file name.
For example for the file &quot;test.01.xml&quot; it returns extension 01.xml and it&#039;s not correct.

What&#039;s about something like this?

  DATA: lt_split TYPE string OCCURS 0 WITH HEADER LINE,
        l_file(100) TYPE c VALUE &#039;test.01.xml&#039;.

  SPLIT l_file AT &#039;.&#039; INTO TABLE lt_split.

  LOOP AT lt_split.
  ENDLOOP.

  WRITE: / &#039;Extension:&#039;, lt_split.

It should be better.</description>
		<content:encoded><![CDATA[<p>Unfortunately it&#8217;s not the perfect way how to parse file name.<br />
For example for the file &#8220;test.01.xml&#8221; it returns extension 01.xml and it&#8217;s not correct.</p>
<p>What&#8217;s about something like this?</p>
<p>  DATA: lt_split TYPE string OCCURS 0 WITH HEADER LINE,<br />
        l_file(100) TYPE c VALUE &#8216;test.01.xml&#8217;.</p>
<p>  SPLIT l_file AT &#8216;.&#8217; INTO TABLE lt_split.</p>
<p>  LOOP AT lt_split.<br />
  ENDLOOP.</p>
<p>  WRITE: / &#8216;Extension:&#8217;, lt_split.</p>
<p>It should be better.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

