Novice2006 Posted August 20, 2009 Report Share Posted August 20, 2009 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 Quote Link to comment
Minh Pham Posted August 20, 2009 Report Share Posted August 20, 2009 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. Quote Link to comment
Novice2006 Posted August 21, 2009 Author Report Share Posted August 21, 2009 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. Maybe you understood me wrong. I wanted to change a string into an Integer Array. Thank you Quote Link to comment
jzoller Posted August 21, 2009 Report Share Posted August 21, 2009 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.