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: 

I/O file

I have a bunch of strings that I would like to write to the same file. I
want each string to be on a different line. Up to now, all the strings
are on the same line. What could I do

Thanks for your assistance

Alexandre Berchemin-Sirven


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 6
(2,978 Views)
> I have a bunch of strings that I would like to write to the same file. I
> want each string to be on a different line. Up to now, all the strings
> are on the same line. What could I do

When you put the strings together (either in concatinate strings, or in your
loop... etc.) just append an "End of Line" character to the end of the
string. To get this, go to the string menu, and you'll see six pink boxes
that represent different strings. The fifth one is the End of Line, which
is what you want. Concatinate your string with the EOL character and you're
all set!

HTH,
Rick
--

rick@csciences.com

Chesapeake Sciences Corp.
1127B Benfield Blvd Millersville, MD 21108

Tel: (410) 923-1300 x3430 Fax: (410) 923-2669
0 Kudos
Message 2 of 6
(2,978 Views)
Thanks for our assistance


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 6 of 6
(2,976 Views)
In article <7tce6g$i3u$1@nnrp1.deja.com>,
berchemin@my-deja.com wrote:
> I have a bunch of strings that I would like to
write to the same file. I
> want each string to be on a different line. Up
to now, all the strings
> are on the same line. What could I do
>
> Thanks for your assistance
>
> Alexandre Berchemin-Sirven
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>
Alexandre,
You should send at the end of the
line a caracter " \r\n "




Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 3 of 6
(2,978 Views)
Alexandre
You should send at the end of the line a caracter
" \r\n "



In article <7tce6g$i3u$1@nnrp1.deja.com>,
berchemin@my-deja.com wrote:
> I have a bunch of strings that I would like to
write to the same file. I
> want each string to be on a different line. Up
to now, all the strings
> are on the same line. What could I do
>
> Thanks for your assistance
>
> Alexandre Berchemin-Sirven
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
>



Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 4 of 6
(2,977 Views)
thanks for your assistance


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 5 of 6
(2,976 Views)