<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How tio remove the extension from file and copy it in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252278#M35965</link>
    <description>Hi
&lt;BR /&gt;Try this expression
&lt;BR /&gt;
&lt;PRE&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE")).substring(0, file.indexOf("."))&lt;/PRE&gt;</description>
    <pubDate>Sat, 20 Oct 2012 10:46:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-10-20T10:46:22Z</dc:date>
    <item>
      <title>How tio remove the extension from file and copy it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252277#M35964</link>
      <description>Hi , 
&lt;BR /&gt; I am new to talend, 
&lt;BR /&gt;I need to read the multiple file in a folder , File name is with extension for instance (category.csv) 
&lt;BR /&gt;after read and load the data into table , i need copy the source file without the extension and put it into target directory. so what i did was 
&lt;BR /&gt; On component ok 
&lt;BR /&gt;tfilelist------tfileinputdelimited------tmap----toracleoutput-------------------------TFilecopy 
&lt;BR /&gt;the below expression i written in tfilecopy in destination filename 
&lt;BR /&gt;StringHandling.LEFT(((String)globalMap.get("tFileList_1_CURRENT_FILE")),6) 
&lt;BR /&gt;The above expression working in the case if the file contains 6 characters , 
&lt;BR /&gt;if its more than that its not working, so i need to do this dynamically any help.......</description>
      <pubDate>Sat, 20 Oct 2012 09:02:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252277#M35964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-20T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: How tio remove the extension from file and copy it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252278#M35965</link>
      <description>Hi
&lt;BR /&gt;Try this expression
&lt;BR /&gt;
&lt;PRE&gt;((String)globalMap.get("tFileList_1_CURRENT_FILE")).substring(0, file.indexOf("."))&lt;/PRE&gt;</description>
      <pubDate>Sat, 20 Oct 2012 10:46:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252278#M35965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-10-20T10:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: How tio remove the extension from file and copy it</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252279#M35966</link>
      <description>&lt;P&gt;Below Expression worked for me:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;StringHandling.LEFT(((String)globalMap.get("tFileList_1_CURRENT_FILE")),StringHandling.INDEX(((String)globalMap.get("tFileList_1_CURRENT_FILE")),"."))&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best Regards,&lt;/P&gt; 
&lt;P&gt;Ram&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 10:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-tio-remove-the-extension-from-file-and-copy-it/m-p/2252279#M35966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-06T10:33:18Z</dc:date>
    </item>
  </channel>
</rss>

