# Exported file has a blank first line

**URL:** <https://community.mp3tag.de/t/exported-file-has-a-blank-first-line/61512>\
**Category:** Support\
**Created:** [July 10, 2023, 7:00pm UTC](https://community.mp3tag.de/t/exported-file-has-a-blank-first-line/61512 "2023-07-10T19:00:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slider](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@Slider](https://community.mp3tag.de/u/Slider)\
**Post date:** [July 10, 2023, 7:00pm UTC](https://community.mp3tag.de/t/exported-file-has-a-blank-first-line/61512/1 "2023-07-10T19:00:05Z")

</div>

Hi everyone,

I want the Title field of an assortment of songs by different artists to display as Title (Artist), i.e. "Dream On (Aerosmith)"

I have a test.mte File with this content:

$filename(mp3tag-export.txt,utf-8)  
$loop(%\_path%)%title% (%artist%)  
$loopend()

The issue I'm having is that the output file has a blank first line which messes up the Convert-\>Textfile - Tag operation. I have to manually delete this blank line for the Converter to operate as expected. I then tried export to a csv-File but in it the first row also is blank.

Is there a way to suppress that first blank line on export?

---

<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:** [July 10, 2023, 7:03pm UTC](https://community.mp3tag.de/t/exported-file-has-a-blank-first-line/61512/2 "2023-07-10T19:03:47Z")

</div>

The number of lines in the script are also reflected in the output.  
Try

```auto
$filename(mp3tag-export.txt,utf-8)$loop(%_path%)%title% (%artist%)
$loopend()

```

---

<div class="post-metadata">

**Author:** ![Slider](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/b38774/32.png) [@Slider](https://community.mp3tag.de/u/Slider)\
**Post date:** [July 10, 2023, 7:11pm UTC](https://community.mp3tag.de/t/exported-file-has-a-blank-first-line/61512/3 "2023-07-10T19:11:54Z")

</div>

Perfect! Thanks a million

---

<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:** [August 9, 2023, 7:12pm UTC](https://community.mp3tag.de/t/exported-file-has-a-blank-first-line/61512/4 "2023-08-09T19:12:13Z")

</div>

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