How to put line 1 from a text file into a TAG

I have a text-file with a lot of info, but the start is always something like this:

Pepi Ginsberg
November 14, 2009
Schubas Tavern
Chicago, Illinois

The first line is always the ARTIST. Can I use an ACTION to put that first line from the textfile into the ARTIST tag?

Have you already tried doing it the same way as suggested here:

Just using ARTIST instead of TITLE?

Thank you, that did it. Not sure how, but that is good for now. I have made some adjustment and it worked. It looks like this:

:+1:

With this Action Group you overwrite the content in ARTIST from the 3rd Action Group line "($if($eql...)" with the content of %temptitle% in the 4th line. IMHO the 3rd line is not necessary.
You could test it without the 3rd line.

Correct, line 3 is not needed.

While on the subject, is it possible to read only line 3 from the text file and put that in a tag?

No. The text file has to be prepared beforehand.

It is not possible to only read line 3 from the text file.

But you can import the complete text file as you already do it. Then extract the needed parts with $meta(TEMPFILE,n) where n is the line you want -1.

Example:
If you want to extract "Schubas Tavern" in your example, you would use $meta(TEMPFILE,2) because this content can be found on line 3:

In my test I have expanded the Action group like this:

For your example data, this would result in:

You can, of course, remove the TEMPFILE field afterwards if you no longer need it.

AWESOME! This means I can very easy take more lines (just in theory, not that it is really needed! This makes things so much easier!! THANKS! :smiley: