Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Emmanuelle__Bustos
Partner - Specialist
Partner - Specialist

Store into Txt Line break At End of file

Hi Qlik Devs,

I have a question about command Store into textfile.txt (txt, delimiter is ',')

When we open the textfile.txt (using notepad) created from the Store command it always has a line break at the end i.e: there is a blank row at the end, and this means a problem for our purpose:

 

Doeas anyone know how to avoid this happens?

 

 

Labels (3)
3 Replies
Teresa
Partner - Contributor
Partner - Contributor

Have you found a resolution for this issue, where a blank row is created at the end of a txt file when storing from Qlik?

marcus_sommer

I doubt that this could be adjusted on the Qlik-side because it's a feature of the used export-library. If this really caused an empty record within the target-application it shouldn't be too hard to remove it there.

- Marcus

Bill_Britt
Former Employee
Former Employee

Hi,

The only way I know to do this is to use PowerShell to remove it, after the store. You may be able to do it using an external program task.

 

$text = [IO.File]::ReadAllText("c:\test.txt")
[IO.File]::WriteAllText("c:\test.txt", $text.TrimEnd())

Bill - Principal Technical Support Engineer at Qlik
To help users find verified answers, please don't forget to use the "Accept as Solution" button on any posts that helped you resolve your problem or question.