<?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 check file empty in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/check-file-empty/m-p/2299925#M72212</link>
    <description>Hello everybody! Can I check in some way if a csv file is empty or not and if empty delete it?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Giuseppe</description>
    <pubDate>Sat, 16 Nov 2024 12:18:44 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2024-11-16T12:18:44Z</dc:date>
    <item>
      <title>check file empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-file-empty/m-p/2299925#M72212</link>
      <description>Hello everybody! Can I check in some way if a csv file is empty or not and if empty delete it?&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;Giuseppe</description>
      <pubDate>Sat, 16 Nov 2024 12:18:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-file-empty/m-p/2299925#M72212</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: check file empty</title>
      <link>https://community.qlik.com/t5/Talend-Studio/check-file-empty/m-p/2299926#M72213</link>
      <description>Hi giuseppe,
&lt;BR /&gt;You could try to read data from it, and then if row_count = 0 then use a tFileDelete.
&lt;BR /&gt;It would look like that:
&lt;BR /&gt;tFileInputDelimited ---------&amp;gt; tJavaRow (Don't need to put anything in there)
&lt;BR /&gt;|
&lt;BR /&gt;|
&lt;BR /&gt;On Subjob OK
&lt;BR /&gt;|
&lt;BR /&gt;|
&lt;BR /&gt;v
&lt;BR /&gt;tJava (Don't need to put anything in there)
&lt;BR /&gt;|
&lt;BR /&gt;|
&lt;BR /&gt;If tFileInputDelimited_row_count == 0 (Not sure about the variable name, type the name of the component and then press CTRL + Space to display the list of variables for that component)
&lt;BR /&gt;|
&lt;BR /&gt;|
&lt;BR /&gt;v
&lt;BR /&gt;tFileDelete</description>
      <pubDate>Fri, 13 Apr 2012 00:10:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/check-file-empty/m-p/2299926#M72213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-13T00:10:42Z</dc:date>
    </item>
  </channel>
</rss>

