# Exporting exactly three tag fields to reimport, slight formatting problem

**URL:** <https://community.mp3tag.de/t/exporting-exactly-three-tag-fields-to-reimport-slight-formatting-problem/48027>\
**Category:** Support\
**Created:** [February 28, 2020, 3:48am UTC](https://community.mp3tag.de/t/exporting-exactly-three-tag-fields-to-reimport-slight-formatting-problem/48027 "2020-02-28T03:48:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DJNeidermeyer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/f08c70/32.png) [@DJNeidermeyer](https://community.mp3tag.de/u/DJNeidermeyer)\
**Post date:** [February 28, 2020, 3:48am UTC](https://community.mp3tag.de/t/exporting-exactly-three-tag-fields-to-reimport-slight-formatting-problem/48027/1 "2020-02-28T03:48:19Z")

</div>

Hi, this is quite simple to many, but I'm quite the newb when it comes to exporting to a text file to then use that text file in Convert. Would you take a look at the following language and can someone tell me why it's giving me too many carriage returns?

$filename(C:\Users\me\Desktop%album%.txt,utf-16)  
$loop(%track%)  
%track%|%year%|%genre%  
$loopend()

The script does give me a file, but then I have to use Notepad to delete the extra lines. An example of what I need looks like this:

01|1983|80s Alternative  
02|1980|80s Alternative  
03|1980|80s Alternative/Gothic Rock  
04|1980|80s Alternative/Classic Punk  
05|1981|80s Alternative  
06|1984|80s Alternative  
07|1981|80s Alternative  
08|1984|80s Alternative/Classic Punk  
09|1981|80s Alternative/Goth & Alternative  
10|1986|80s Alternative/Synthpop

Again, that's after I manually deleted the extra carriage returns. The Convert option worked perfectly overwriting those precise Fields that were necessary and leaving all others intact.

Thanks!!

---

<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:** [February 28, 2020, 5:43am UTC](https://community.mp3tag.de/t/exporting-exactly-three-tag-fields-to-reimport-slight-formatting-problem/48027/2 "2020-02-28T05:43:06Z")

</div>

Experiment a little with the export code itself. THe number of lines in the code are reflected in the output.  
So if you want to have the output close together, something like the following might be better:  
`$filename(C:\Users\me\Desktop%album%.txt,utf-16)$loop(%track%)%track%|%year%|%genre%`  
`$loopend()`

---

<div class="post-metadata">

**Author:** ![DJNeidermeyer](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/f08c70/32.png) [@DJNeidermeyer](https://community.mp3tag.de/u/DJNeidermeyer)\
**Post date:** [February 28, 2020, 7:27pm UTC](https://community.mp3tag.de/t/exporting-exactly-three-tag-fields-to-reimport-slight-formatting-problem/48027/3 "2020-02-28T19:27:47Z")

</div>

> [@ohrenkino](#):
>
> `$loop(%track%)%track%|%year%|%genre%`  
> `$loopend()`

Worked like a charm, thanks! I knew it was probably something as simple as that. Didn't know the carriage returns were the ones I was using in the code itself. (Back in college FORTRAN days, they didn't matter).

---

<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:** [March 29, 2020, 7:27pm UTC](https://community.mp3tag.de/t/exporting-exactly-three-tag-fields-to-reimport-slight-formatting-problem/48027/4 "2020-03-29T19:27:50Z")

</div>

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