Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66732

Convert the string "\n" to the newline character

$
0
0

Does anyone know of a quick and elegant way to convert ASCII strings in the form of "\<some character>" to the corresponding byte value. For example, if I have the string "\n" I would like to convert it to the byte value of 0x0A. I realize I could brute force it with a case structure or a lookup table but I need to do this for all of the various escape character sequences. So far I haven't come up with a simple solution.


Viewing all articles
Browse latest Browse all 66732

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>