# Text file - Tag

**URL:** https://community.mp3tag.de/t/text-file-tag/10107
**Category:** Support
**Created:** [March 15, 2010, 2:23am UTC](https://community.mp3tag.de/t/text-file-tag/10107 "2010-03-15T02:23:17Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)
#### Post date: [March 15, 2010, 2:23am UTC](https://community.mp3tag.de/t/text-file-tag/10107/1 "2010-03-15T02:23:17Z")

</div>

I'm trying to help someone using Mp3tag to update tags from a file. He has the data in an Excel spreadsheet and he created a CSV file. Here's a sample:

SF001,1,Straight Up,Paula Abdul  
SF001,2,Faith,George Michael  
SF001,3,White Wedding,Billy Idol

The first field is the folder name so I told him to use the following format string:

%dummy%,%track%,%title%,%artist%

But the error he's getting is "File ... cannot be opened for reading." I downloaded and tested the file and it worked fine for me so I'm not sure what's wrong.

What would cause that error?

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 15, 2010, 3:58am UTC](https://community.mp3tag.de/t/text-file-tag/10107/2 "2010-03-15T03:58:28Z")

</div>

> [@stanman](#):
>
> ... But the error he's getting is "File ... cannot be opened for reading." I downloaded and tested the file and it worked fine for me so I'm not sure what's wrong. What would cause that error?

Perhaps the Excel export CSV file ...  
... has a BOM marker at the beginning of the file?  
... has a header line?  
... is not a plain text file?

It is recommended to write also the complete path to the music file into each line to the CSV file to help Mp3tag to find the related musicfile, for example:

SF001,1,Straight Up,Paula Abdul,"X:\ANY FOLDER\SF001\FILE 2.MP3"  
SF001,2,Faith,George Michael,"X:\ANY FOLDER\SF001\FILE 3.MP3"  
SF001,3,White Wedding,Billy Idol,"X:\ANY FOLDER\SF001\FILE 1.MP3"

Related format string:  
%dummy%,%track%,%title%,%artist%,"%\_PATH%"

DD.20100314.0558.CET

---

<div class="post-metadata">

### Author: ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)
#### Post date: [March 15, 2010, 5:24am UTC](https://community.mp3tag.de/t/text-file-tag/10107/3 "2010-03-15T05:24:01Z")

</div>

Thanks for the reply.

> [@DetlevD](#):
>
> Perhaps the Excel export CSV file ...  
> ... has a BOM marker at the beginning of the file?  
> ... has a header line?  
> ... is not a plain text file?

No there's no BOM marker, no header line and it's a regular ANSI text file.

I have no problem reading and using the file, but there must be something the way his PC is configured that won't let him even open the file.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 15, 2010, 9:26am UTC](https://community.mp3tag.de/t/text-file-tag/10107/4 "2010-03-15T09:26:05Z")

</div>

> [@](#):
>
> But the error he's getting is "File ... cannot be opened for reading."

This message can occur when the file is already opened by another application in read deny mode. Possibly Excel is still open and locks the csv file?

DD.20100315.1125.CET

---

<div class="post-metadata">

### Author: ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)
#### Post date: [March 15, 2010, 11:12am UTC](https://community.mp3tag.de/t/text-file-tag/10107/5 "2010-03-15T11:12:07Z")

</div>

OK. it looks like he's reading the file, but now he's getting this:

"C:\edit\disc 001\SF-00101.mp3" -\>  
"C:\edit\disc 001\SF-00102.mp3" -\>  
"C:\edit\disc 001\SF-00103.mp3" -\>  
Cannot parse line 1.  
Cannot parse line 2.  
Cannot parse line 3.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 15, 2010, 1:55pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/6 "2010-03-15T13:55:00Z")

</div>

> [@stanman](#):
>
> OK. it looks like he's reading the file, but now he's getting this: "C:\edit\disc 001\SF-00101.mp3" -\> ... Cannot parse line 1. ...

So what was the cause for the "cannot be opened for reading" message?

It seems so that the field structure of the CSV line does not match to the pattern in the format string.

For me ... this CSV file ...

SF001,1,Straight Up,Paula Abdul,"D:\TEST CSV\Test1.mp3"  
SF001,2,Faith,George Michael,"D:\TEST CSV\Test2.mp3"  
SF001,3,White Wedding,Billy Idol,"D:\TEST CSV\Test3.mp3"

... works with this format string ...

%dummy%,%track%,%title%,%artist%,"%\_path%"

Be honest, it is not HE, but it is YOU.

DD.20100315.1554.CET

---

<div class="post-metadata">

### Author: ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)
#### Post date: [March 15, 2010, 3:06pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/7 "2010-03-15T15:06:37Z")

</div>

Yes, I also have no problem with the CSV file.

> [@DetlevD](#):
>
> Be honest, it is not HE, but it is YOU.

No, I've been a computer programmer for over 20 years, I wouldn't make a rookie mistake.

Here's the thread, my username is stantley and I'm trying to help miger.

[http://forums.techguy.org/multimedia/90929...-mass-edit.html](http://forums.techguy.org/multimedia/909292-solved-id3-mass-edit.html)

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [March 15, 2010, 3:36pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/8 "2010-03-15T15:36:36Z")

</div>

> [@stanman](#):
>
> ... Here's the thread, my username is stantley and I'm trying to help miger. ...

Tell "miger" to log in here into the Mp3tag forum, there might be other users willing to help on basic user level.

There are several different methods around here on the board to construct a save line format of CSV/SSV/TSV or such other delimiter character.  
I like to use a pipe symbol as delimiter and double quotes to enclose literals.  
Others like the star symbol as delimiter, because the star symbol is a forbidden character on file system paths.

Take into account, that the excel setup and understanding of what is CSV and what is the delimiter is system language dependent.

Wikipedia has good info about CSV:  
German  
[http://de.wikipedia.org/w/index.php?title=...;oldid=71045982](http://de.wikipedia.org/w/index.php?title=CSV_(Dateiformat)&oldid=71045982)  
English  
[http://en.wikipedia.org/w/index.php?title=...oldid=345909462](http://en.wikipedia.org/w/index.php?title=Comma-separated_values&oldid=345909462)

See also:  
[CSV output](https://community.mp3tag.de/t/4483/2)  
[[LP] CSV export fails on value containing semicolon](https://community.mp3tag.de/t/9066/2)  
[character set von csv](https://community.mp3tag.de/t/8331/1)  
[Export CSV](https://community.mp3tag.de/t/7330/1)  
[Import tags from text file](https://community.mp3tag.de/t/8093/1)

DD.20100315.1736.CET

... and by the way .. it looks like that your pupil cannot work with Excel. He does not know how to save the excel worksheet as other format.  
He tries to simulate CSV by inserting new columns into the worksheet, which cells contain the delimiter character. Therefore it is possible that he creates much more fields in the export line and runs into trouble over trouble.  
Tell him to use simple notepad and guide him to reach the goal basically with one correct formatted CSV line.  
If he got one line working, then millions of lines will work.

DD.20100315.1748.CET

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [March 15, 2010, 3:40pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/9 "2010-03-15T15:40:09Z")

</div>

_screen 2.bmp_ shows that miger has a flawed format string that misses a % before artist%

---

<div class="post-metadata">

### Author: ![stanman](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/c5a1d2/32.png) [@stanman](https://community.mp3tag.de/u/stanman)
#### Post date: [March 15, 2010, 4:24pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/10 "2010-03-15T16:24:43Z")

</div>

DetlevD, thank you for the information I'll have miger look at this and post here if he has questions.

dano, thank you, I completely missed that, that's probably the problem.

---

<div class="post-metadata">

### Author: ![miger](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/ccd318/32.png) [@miger](https://community.mp3tag.de/u/miger)
#### Post date: [March 15, 2010, 10:57pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/11 "2010-03-15T22:57:51Z")

</div>

Hi all, I've registered to try to help sort my problem out.  
I admit i'm a real novice with Excel and i'll now read the links posted on CSV files to learn more.  
I'd like to point out that Stanman has gone out of his way to help me with this and i now want to work this out as much for his sake as mine.  
I thought DetlevD,that you came across as a little condescending to Stanman who is after all,only trying to help me with his PC knowledge, but of course i'm sure you didn't mean to do so. You are both obviously experienced programmers while i'm a complete novice.  
Anyway, i'm grateful for everyone's input : 🙂

By the way, the "cannot be opened for reading" message was because i had Excel open!

Miger

---

<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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/text-file-tag/10107/12 "2026-02-09T12:22:15Z")

</div>


