<?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: Use the import java.io.File statement in a job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-the-import-java-io-File-statement-in-a-job/m-p/2197711#M1355</link>
    <description>&lt;P&gt;To get the Path ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context.file =&amp;nbsp;&lt;SPAN&gt;c:\myFolder\File.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String path =&amp;nbsp;&lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt; java.io.&lt;SPAN class="typ"&gt;File&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(Context.file&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;).&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;getParent&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2019 13:20:36 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-03-25T13:20:36Z</dc:date>
    <item>
      <title>Use the import java.io.File statement in a job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-import-java-io-File-statement-in-a-job/m-p/2197710#M1354</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to extract the parent folder of a file's path that i get from the context parameters (the path looks something like this&amp;nbsp;c:\myFolder\File.csv, and i want to extract the c:\myFolder path) , so i can insert a file in the same folder as the one passed in parameters.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;I want to use the File class of the java.io package so i can use the getParent() method to get the parent folder, the problem here is the import statement, for now i insert the import statement inside a tJavaRow component, but i can't use this method if my job does not have this component.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My question is this: is there a way to insert an Import Statement that'll be applied to my job without having to use a tJavaRow to add the java.io.File statement?&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best regards,&lt;/P&gt; 
&lt;P&gt;Ameen&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:11:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-import-java-io-File-statement-in-a-job/m-p/2197710#M1354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-25T13:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use the import java.io.File statement in a job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-the-import-java-io-File-statement-in-a-job/m-p/2197711#M1355</link>
      <description>&lt;P&gt;To get the Path ,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Context.file =&amp;nbsp;&lt;SPAN&gt;c:\myFolder\File.csv&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;String path =&amp;nbsp;&lt;SPAN class="kwd"&gt;new&lt;/SPAN&gt; java.io.&lt;SPAN class="typ"&gt;File&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(Context.file&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;).&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;getParent&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:20:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-the-import-java-io-File-statement-in-a-job/m-p/2197711#M1355</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-25T13:20:36Z</dc:date>
    </item>
  </channel>
</rss>

