From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
02-12-2009 06:39 PM
Need some help...
I'm trying to make a VI that'll read a simple text configuration file. The file will have entries like:
URL = 192.168.0.1
Port = 9000
What I'd like to do is to read in the line, and 'parse' it into 2 strings. Then, based on the contents of the first string (the part before the = sign), do something with the second part (after the =).
I've managed to open the file using 'Open/Create/Replace File' and but am having problems reading 'Scan From File' to pull in the strings (it seems set an error when I read in the first line although my probes show that I got both strings).
Anyway, once I've got my 2 strings, is there a simple 'case' like strucure that I can use to search through all my pre-defined 'first strings'?
Solved! Go to Solution.
02-12-2009 08:30 PM
You don't have to build anything new. Just use the Config File VIs - check under the File IO functions. They will do exactly what you want.
Mike...
02-13-2009 08:51 AM
Great! I was hoping that I wouldn't have to re-invent the wheel!
Thanks.
02-13-2009 09:23 AM