Jump to content

txt to comparison


Recommended Posts

Hey all,

Back with a another noob question. I was trying to read from a .txt file when I finally achieved this i wanted to get the information in an array cause i was going to use each of these numbers for comparison. But I am having difficulty with this. So Can anyone help me.

Thank you

In OpenG lib, you can find the vi called 'String to 1D Array', you can then scan from each of these string for the number which you want to compare.

post-11757-125081028776_thumb.jpg

Link to comment

Maybe you understood me wrong. I wanted to change a string into an Integer Array.

Thank you

For ascii:

http://zone.ni.com/reference/en-XX/help/371361F-01/glang/string_to_byte_array/

If you need integers rather than U8's, you'll need to convert to them. Using http://zone.ni.com/reference/en-XX/help/371361F-01/glang/to_long_integer/, for instance.

Joe Z.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.