# Problem with carriage returns in "Write to Text File"

**URL:** https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619
**Category:** Bugs
**Created:** [April 18, 2006, 4:40am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619 "2006-04-18T04:40:08Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![patrick\_burrell](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@patrick\_burrell](https://www.finalbuilder.com/forums/u/patrick_burrell)
#### Post date: [April 18, 2006, 4:40am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/1 "2006-04-18T04:40:08Z")

</div>

using FB 4.1.0.199:  
  
Any carriage returns in the “New Content” text of the “Write to Text File” action (“append…” & “create file…” are selected) are converted to a “box” character when FB is shut down, restarted and the project is reloaded. This “box” character is written to the text file rather than a carriage return.  
  
Patrick Burrell

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [April 19, 2006, 2:27am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/2 "2006-04-19T02:27:44Z")

</div>

Hi Patrick,  
  
This is a bug in a new version of the memo control we are using. It’s been fixed for the next build.  
  
In the meantime, the action should still just work - the “box” characters are actually CRLF newlines, it’s just that they’re not being displayed properly on the memo page.

---

<div class="post-metadata">

### Author: ![patrick\_burrell](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/47e85d/32.png) [@patrick\_burrell](https://www.finalbuilder.com/forums/u/patrick_burrell)
#### Post date: [April 20, 2006, 2:16am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/3 "2006-04-20T02:16:59Z")

</div>

Well, the actions still works, but the “box” character appears in the text file. It doesn’t behave like a CRLF - it’s a “box”.  
  
Patrick

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [April 24, 2006, 5:01am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/4 "2006-04-24T05:01:22Z")

</div>

Hi Patrick,  
  
How strange… when we saw this problem before, it was still treating the “unknown” characters as CRLFs in the action.  
  
At any rate, this build has the fix:  
  
[https://www.finalbuilder.com/downloads/finalbuilder/410/FB410\_207.exe](https://www.finalbuilder.com/downloads/finalbuilder/410/FB410_207.exe)  
  
  
Please let us know if you experience any more problems.

---

<div class="post-metadata">

### Author: ![tmchardy](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/dbc845/32.png) [@tmchardy](https://www.finalbuilder.com/forums/u/tmchardy)
#### Post date: [May 4, 2006, 9:49am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/5 "2006-05-04T09:49:27Z")

</div>

I use this quite often. if you’re running an older build there is a “work around” for this. It only seems to do this if you load the control, not if you save it. Therefore, once you edit your “write to text file box” and hit save it should work fine. It’s only if you open it up again and save again that it messes things up.  
  
Just a work around for those using the older builds. 😉

---

<div class="post-metadata">

### Author: ![matth](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/f475e1/32.png) [@matth](https://www.finalbuilder.com/forums/u/matth)
#### Post date: [October 12, 2006, 8:49am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/6 "2006-10-12T08:49:51Z")

</div>

I am experiencing this problem in v4.1.0.228. A sample is attached. If you open the sample in Wordpad it looks fine. If you open the sample in Notepad . . . a box appears between the lines instead of a carriage return / line feed. I wonder if FinalBuilder is replacing cr/lf with cr or lf. Two for one.   
  
One of the text files I am creating is a bat file so the cr/lf problem is significant.  
  
The problem started when I pasted text into FinalBuilder from a text editor. Manually hitting[enter] after each line in the text fixed the problem . . . until you close and re-open FinalBuilder. Then the box returns!  
  
Any suggestions would be appreciated.  
  
Thanks,  
Matt[Exclude.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/1/1abb31c770e2f7df68a42c8f7263d170baa50fd3.zip) (142 B)

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [October 13, 2006, 1:27am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/7 "2006-10-13T01:27:59Z")

</div>

Hi Matt,  
  
I can’t seem to reproduce the problem here. If you update to the [latest 4.2 build](https://www.finalbuilder.com/forums.aspx?forumid=2&postid=835&view=topic), does it still happen?  
  
If updating the build doesn’t resolve the issue, could you please send us the project file with the broken action (either attach it to a message or email it to [support@finalbuilder.com](mailto:support@finalbuilder.com)). Thanks.  
  
Regards,  
  
  
Angus

---

<div class="post-metadata">

### Author: ![matth](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/f475e1/32.png) [@matth](https://www.finalbuilder.com/forums/u/matth)
#### Post date: [October 13, 2006, 10:02am UTC](https://www.finalbuilder.com/forums/t/problem-with-carriage-returns-in-write-to-text-file/2619/8 "2006-10-13T10:02:57Z")

</div>

Version 4.2.0.276 appears to have fixed the problem.

Thanks,  
Matt
