Hello,
I have a text file that has this structure:
123456789|2|3|4|2016-09-24-02:56:00|b|123|c|G|24 Sep 2016 02:55:35|x
1|2|3
4|5|6
END-OF-LINE
123456789|7|3|4|2016-09-24-02:56:00|b|123|c|G|24 Sep 2016 02:42:35|y
7|8|9
1|4|5
Records
I want to take the value of the date which is in index 10 (24 Sep 2016 02:42:35)
and put it in a variable named y and then use it depending on the file structure
Sometimes the file only consists of this
I made a snippet for this, using the help of your Answers, but now the value that is written in the variable y is always the same
how can i change it depending on the line i am reading from. In other words. If i am reading from this line:
Variable Y should equals 24 Sep 2016 02:55:35
else
If i am reading from this
Variable Y should equals 24 Sep 2016 02:42:35
Here is the snippet. Thanks in Advance