Home > Default > Format txt file

Format txt file

November 30Hits:0
Advertisement
How can I output the following text file,
Data
Size 1000
0
90
121
where Data and Size 1000 are string values and the data underneath are dbl.  The data underneath must be in a single column.

Answers

Hello,
I'm guessing you're on a non-Windows machine.  In the example code given by the previous poster, replace the Carriage Return Constants on his diagram (there are two of them) with End of Line Constants (also available on the String palette).  Now your text file should look normal.  The difference between these items is that a Carriage Return is the platform specific character denoting the end of a line on Windows, but it may not be on other platforms.  In order to get an end of line character that is specific to the platform you are on, you need to use the End of Line Constant.
Hope this helps,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman

Read other 5 answers

Tags:

Related Articles

  • Format txt fileNovember 30

    How can I output the following text file, Data Size 1000 0 90 121 where Data and Size 1000 are string values and the data underneath are dbl.  The data underneath must be in a single column.Hello, I'm guessing you're on a non-Windows machine.  In the

  • The .txt file has formatting issues that need to be resolvedOctober 11

    Transaction ZEHS20 runs a program that assigns a CCL Group to a specification header, based on its Active Ingredients. The transaction can be run in the background if desired with output being emailed to the user.The .txt file has formatting issues t

  • Error with the data format in the TXT file, sending as an Email attachmentOctober 11

    Hi all, I have an problem in the data formating in the TXT file while sending as an attachment via an email by using the FM "SO_DOCUMENT_SEND_API1". For eg: The data in the TXT file is looking like as follows: 0 0 0 0 2        L O U D S P E A K

  • Export Excel Table in .txt File with space delimited text in UNICODE FormatOctober 11

    Hi all I've a big unsolved problem: I would like to convert an Excel table with some laboratory data in it (descriptions as text, numbers, variables with some GREEK LETTERS, ...). The output should be a formatted text with a clear structure. A very g

  • Every time I try to download the new version of Adobe Flash Player it saves as a .txt file and I do not know how to get it to save in the correct format.October 11

    Every time I try to download the new version of Adobe Flash Player it saves as a .txt file and I do not know how to get it to save in the correct format.Please post in the Adobe Flash Player forum.Read other 2 answers

  • Write data to .txt file with formattingOctober 11

    Hi, I am trying to read data from serial port and write it on to a .txt file. I am able to write onto the file but it has got no formatting. What I would ideally like to do is, read the data from serial port, take only some parts of it and write on t

  • Wrong  file format while generating a txt fileOctober 11

    Hi, I am using a java application to generate a txt file. This txt file will later be used by a spider. The problem is when the file is generated it has UNIX format. It means the '\n' characters at the end of the line are not the same as in a DOS fil

  • Formatting & in loaded .txt filesNovember 30

    I have a .txt file that contains some .html formatted text. It is loaded into a _mc. I am trying to make a link that contains an & in the path. Is there a way to have Flash read it as and & instead of creating a new variable? Thanks in advance. W.

  • Format probelm about the downloaded txt fileOctober 11

    I encounter a problem. after the 4.7 system upgrade to ECC6.0 ..(sandbox) Our report can't download the correct txt file. I wrote a test program. REPORT  ZTEST  NO STANDARD PAGE HEADING. write: / '123',          / 'abc'. I download from menu :system-

  • "Bad data format" when reading txt file from the presentation serverOctober 11

    Hello, I have a piece of code which reads a txt file from the presentation server to an internal table like below: DATA : lv_filename type string. lv_filename = 'C:\abap\Test.txt'. "I created a folder called abap under C:\ CALL method CL_GUI_FRONTEND

Copyright (C) 2019 wisumpire.com, All Rights Reserved. webmaster#wisumpire.com 14 q. 0.586 s.