From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write to text file. EOL what does it do? Documentation bug

 

I have code that takes the output from Arry to Spreedsheet string ie it has the /n/r and then write out to the file using write string.

 

THis code has run unaltered since LV6

 

Now in LV2010 the EOL characters are lost!  not written in the text file

The Convert EOL is not set - never has been.

I ddi chekc the strong that was written all the way down to the lowest level vi and the EOL chars are there, but don't get written to the file.

 

I guess I need to file a bug report.

 

Running on Windows XP

 

Michael

0 Kudos
Message 11 of 14
(762 Views)
Testing by setting Convert EOL = true
Does not do anything, I still loose my EOL chars in the write text.
michael
0 Kudos
Message 12 of 14
(748 Views)

 

So now it is clear that the EOL is being dropped on the write to text using the Write to Text File vi

 

No matter what I did; adding \n \r in many combinations and also the plateform independent EOL Constant or both I always lose the EOL chars at the end of the write string

 

My work around was to add a EOL to the beginning of the write string, not always possible to use this work around but in this particular part of my code I could.

 

So can this be considered to be flagged as a lv2010 BUG?

 

michael

0 Kudos
Message 13 of 14
(720 Views)

 

This behaviour clarifiied and understood in this thread:

 

http://forums.ni.com/t5/LabVIEW/Change-of-Behaviour-in-LV2010-Last-EOL-lost-with-config-file/m-p/129...

 

 

michael

0 Kudos
Message 14 of 14
(698 Views)