Skip to main content
Question

Text File Writer is prefixing each line with a 'space' character

  • June 27, 2020
  • 2 replies
  • 17 views

benvk
Contributor
Forum|alt.badge.img+8

Has anyone had an issue when writing to text file, it prefixes each entry with a 'space' character?

It is writing each new line nicely, appending to the existing data, but the data it writes always is inserted with a leading space.

I can confirm the row being sent to be added to the text file does not have any leading space:

When this is written, a space is appearing!

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Celebrity
  • June 27, 2020

Where do the source text lines come from?

Didn't the AttributeTrimmer work to trim the space character?


benvk
Contributor
Forum|alt.badge.img+8
  • Author
  • Contributor
  • June 27, 2020

Where do the source text lines come from?

Didn't the AttributeTrimmer work to trim the space character?

yes it does trim the character, I can see the attribute does not have a leading space right before being inserted to the text writer (as per above screenshot).

source is an attribute manager where I build that string, right before inserting into the text writer.

Note I have just tried using a CSV writer and it works perfectly fine, so that tells me the string being inserted is fine, it is the text file writer appending the leading space.

I no longer need an answer to solve this projects issue, but now I am just curious as to why it added the space in the first place.