[resolved] two little problem, just open a file and verify the file format

Highlighted
One Star

[resolved] two little problem, just open a file and verify the file format

Hi all,
So, i have 2 question:
1) I need to know if Talend can just open a file, if he can, which component?
2) I need to verify the file format, but how can i make it?
Thanks
Ryuk-

Accepted Solutions
Highlighted
One Star

Re: [resolved] two little problem, just open a file and verify the file format

Hi Ryuk-
The command in tSystem should be this.
"cmd /c D:/Talend/TOS_DI-Win32-r78327-V5.0.2/workspace/test_CCBO/fichier_STR_standard_CCBO.txt"

Regards,
Pedro

View solution in original post


All Replies
Highlighted
One Star

Re: [resolved] two little problem, just open a file and verify the file format

Hi Ryuk-
Q1: If you want to simply open a file, I think you might use tSystem to do this.
Q2: Use tFileProperties and get suffix name from basename column.
Regards,
Pedro
Highlighted
One Star

Re: [resolved] two little problem, just open a file and verify the file format

Hi Pedro,
Thanks for your answer, but i have a little problem with the tSystem component...
I have this in my component:
"cmd D:\Talend\TOS_DI-Win32-r78327-V5.0.2\workspace\test_CCBO\fichier_STR_standard_CCBO.txt"
But Talend display this error:
Séquence d'échappement non valide (les séquences valides sont \b \t \n \f \" \' \\) (APPROXIMATELTY IN ENGLISH: Invalid escape sequence (the valid sequences are \ b \ t \ n \ f \" \' \ \)
it's possible to know if the file is open?
Can you help me?
Best regards
Ryuk-
Highlighted
One Star

Re: [resolved] two little problem, just open a file and verify the file format

Hi Ryuk-
The command in tSystem should be this.
"cmd /c D:/Talend/TOS_DI-Win32-r78327-V5.0.2/workspace/test_CCBO/fichier_STR_standard_CCBO.txt"

Regards,
Pedro

View solution in original post

Highlighted
One Star

Re: [resolved] two little problem, just open a file and verify the file format

Hi Pedro,
Thanks for your help.
Best Regards
Ryuk-

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog