12-03-2009 03:09 AM
i was tring to write a string to a ini file , that should be :
[Basic Information]
File Name=C:\\11111.doc
but the result is :
[Basic Information]
File Name="C:\\11111.doc"
where did the double quotation came from?
Solved! Go to Solution.
12-03-2009 03:49 AM
Hi adobe,
please switch on the context help. Then you would recognize the additional input of "WriteKey" when writing strings...
Other topics:
- Why do you convert the path to a string? Why not write the path directly?
- Why do you use locals here?
- Why do you complain about the quotation marks? When reading the key they will be filtered by LabView anyway...
12-03-2009 04:11 AM - edited 12-03-2009 04:17 AM
i don't think there is any connection with converting path to string, becaus i met the same question in following block diagram , and i have tried to switch "wirte vi" type from automatic to string , also can't work
12-03-2009 04:23 AM
12-03-2009 04:39 AM
- Why do you convert the path to a string? Why not write the path directly?
i have show the same problem without converting path to string , mostly this problem happended after i use string format function
- Why do you use locals here?
i was using a stacked sequence strcuture , while there was so much frame, and i don't want to use to much
sequence local ,so i use local variable ,for example if i want to swith the following block to stacked sequence strcuture, each vi per frame ,
how much sequence local do i need to use? , my solution is to feed the same Local variable in each frame ,or do you have any good idea?
- Why do you complain about the quotation marks? When reading the key they will be filtered by LabView anyway...
it was specified format by customer
12-03-2009 04:44 AM - edited 12-03-2009 04:45 AM
Hi adobe,
either:
- Filter the ini-file after writing to remove the quotes
- Change and use a copy of the WriteKeyString function
The config file functions are nice to use, but they have their quirks NI-specific implementations...
12-03-2009 06:28 AM - edited 12-03-2009 06:29 AM
got it ,thanks
12-30-2014 09:41 PM
Ran into the same issue with quotes being added to the value in LV 2009 forward. fwiw, I've attached a drop in replacement for Write Key (String).vi that doesn't write quotes or escape characters to the file. I just tore out all of the privately scoped subVIs from Add Key.vi so there's one monolithic diagram with no library dependency.
02-19-2015 03:45 PM
save it please for previous version if possible (2009), not (2013). thank you.
02-20-2015 06:55 AM
Conversion was done here: http://forums.ni.com/t5/Version-Conversion/from-2013-to-2009/m-p/3092368#U3092368