LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I eliminate spaces from a file?

That's odd, it works just fine here, see image! (I have enabled "\codes" for the string constant for convenience).

Make sure to grab "all rows", not just the first. It's a 2D array.

(btw: Trim Whitespace is in the "Strings...Aditional String Functions" palette, lower right corner, but you don't need it if you just have single spaces)
0 Kudos
Message 11 of 13
(512 Views)
Check in the online LabVIEW help under "Backslash ('\') Codes Display"
In "\" Codes Display, byte values/characters in the string which are non-printable appear in the form of "\xx" where xx is the hex value for the byte/character �
with a few exceptions which haven't changed since LabVIEW v1 or v2 (since ASCII code hasn't changed):

\r for \0D (Carriage return), \t for \09 (Tab), \b for \08 (Backspace), \n for \0A (Line feed), \s for \20 (space), \\ for \5C ("\" character itself).

Type "\20\0A" into a string control that's config'd in "\" Display, hit enter and it'll change itself to "\s\n".

A string "000D 2001 4142 FF1C FA26" in Hex Display
is "\00\r\s\01AB\FF\1C\FA&" in "\" Display

The usefulness of
"\" display is apparent if you ever need to have a string constant of just "\s" on the block diagram.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 12 of 13
(512 Views)
Thanks! that helps alot.
0 Kudos
Message 13 of 13
(512 Views)