It's right there.
If you have a mix of decimal places and delimiters, the file might have been edited manually. In this case, the number of spaces might be variable and some might have been replaced by tabs.
You should read the file as a string, do a global replace of all "." with "," (or vice versa), the use "Scan strings for tokens" in two stacked while loops to get the fields. (use an array of delimiters containing \n and \r to get the lines, then use another array of delimiters (\s, \t, etc.) to get the records. This VI contracts consecutive delimiters into one by default, so it will handle all irregularities automatically. Wrap it up in a nice subVI and you're set for life. 🙂
Yes, "%.;" switches to period, "%,;" to comma, and "%;" back to the default. Check the online help. (Page: Format Specifiers Syntax Elements)
Message Edited by altenbach on
06-05-2008 09:45 AM