LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem while reading a configuration file which was edited in notepad

Solved!
Go to solution

Hi All,

 

When I try to read a configuration file (which  was edited from notepad) using OpenG (Read INI Cluster) function I am not getting any outputs from the function. On debugging for the issue I tried reading the same file using Read from text file function. The output that I got is as follows:

[Server URLs]
Directory = "http://stb.site.com"
 
But the expected output is :
[Server URLs]
Directory = "http://stb.site.com"
 
Can anyone tell me the reason for the junk data present in front of the section name and how to read the configuration file if any such issue occur. Thanks in advance.
0 Kudos
Message 1 of 4
(2,796 Views)
Solution
Accepted by topic author Prasaanth

See here: Config file "byte order mark"


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 4
(2,792 Views)

Also, in both cases, your GUI string value is missing the closing quotation mark.

0 Kudos
Message 3 of 4
(2,789 Views)

Thanks RavensFan. Sorry it is a Typo mistake. The actual outputs had closing quotations in both the cases

0 Kudos
Message 4 of 4
(2,772 Views)