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

**URL:** https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397
**Category:** Support
**Created:** [August 13, 2025, 8:31am UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397 "2025-08-13T08:31:07Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 13, 2025, 8:31am UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/1 "2025-08-13T08:31:07Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 13, 2025, 8:55am UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/2 "2025-08-13T08:55:12Z")

</div>

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

> [@Get info from textfile as Action](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366):
>
> I have a .txt-file with all titels from songs. They are listed simply under eachother in a list. With Convert Textfile to Tag I can add those to the tag Title. While that works perfect, I prefer to have it as a action. So I can do more actions at once, to save time eventually. Can this be done?

Just using `ARTIST` instead of `TITLE`?

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 13, 2025, 9:16am UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/3 "2025-08-13T09:16:59Z")

</div>

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:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/2/4/241e1103430b49ec24af405fd1c124c8cf8e0a98.png)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 13, 2025, 9:36am UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/4 "2025-08-13T09:36:25Z")

</div>

> [@popmarter1](#):
>
> Not sure how, but that is good for now.

👍

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.

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 13, 2025, 9:52am UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/5 "2025-08-13T09:52:26Z")

</div>

Correct, line 3 is not needed.

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 13, 2025, 12:58pm UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/6 "2025-08-13T12:58:05Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [August 13, 2025, 1:11pm UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/7 "2025-08-13T13:11:22Z")

</div>

> [@popmarter1](#):
>
> is it possible to read only line 3 from the text file

No. The text file has to be prepared beforehand.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 13, 2025, 1:54pm UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/8 "2025-08-13T13:54:22Z")

</div>

> [@popmarter1](#):
>
> is it possible to read only line 3 from the text file and put that in a tag?

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:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/f/9/f9bf906f4b9fb8206673377fe8de904118c6768a.png)

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

 ![image](https://community.mp3tag.de/uploads/default/original/3X/8/a/8a53ad0a907d29eb5cb4105a62d8cb556196428f.png)

For your example data, this would result in:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/b/5/b5d128f5f603723d76354ac27eae6d6ec9820b66.png)

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

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 13, 2025, 2:11pm UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/9 "2025-08-13T14:11:51Z")

</div>

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! 😃

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [September 12, 2025, 2:12pm UTC](https://community.mp3tag.de/t/how-to-put-line-1-from-a-text-file-into-a-tag/69397/10 "2025-09-12T14:12:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
