Sitemap

Amicuk Programming Answers

Can I add comments to a Configuration File?

-0001-11-30   Views:0

Advertisement

If so, how? I want to be able to update the values in the file. At the moment I have lines beginning with a semi colon and am reading from the configuration file, but as soon as I enable writing to the file it gets messed up (="" added to the en

If so, how?
I want to be able to update the values in the file. At the moment I have lines beginning with a semi colon and am reading from the configuration file, but as soon as I enable writing to the file it gets messed up (="" added to the end of every comment line, header information deleted).
Thanks
Richard.

The replay answer
Advertisement
Begin and end each comment line with "\\" characters.  Extra carriage return\line feed characters are allowed (to improve readability).  I have only tried this on Windows XP so I don't know if it will work on other platforms.
Here is an example configuration file:
[Button1]
Text=Production Testing
Privileges=Operator,Technician,Admin
VI Path=C:\\C4Test\\Strider\\software\\labview\\Production Testing.vi
[Button2]
Text=Advanced Testing
Privileges=Technician,Admin
VI Path=C:\\C4Test\\Strider\\software\\labview\\Advanced Testing.vi
[Button3]
Text=Maintenance
Privileges=Technician,Admin
VI Path=C:\\C4Test\\Strider\\software\\labview\\Maintenance.vi
[Button4]
Text=Updates
Privileges=Technician,Admin
VI Path=C:\\C4Test\\Strider\\software\\labview\\Updates.vi
[Auxiliary1]
Text=Documents
Privileges=Operator,Technician,Admin
VI Path=C:\\C4Test\\Strider\\software\\labview\\Documents.vi
[Auxiliary2]
Text=Home
Privileges=Operator,Technician,Admin
VI Path=C:\\C4Test\\Strider\\software\\labview\\Home.vi
\\In this configuration file, square brackets enclose each section name. Every section name must be unique.\\
\\Sections contain key/value pairs separated by an equal sign. Within each section, every key name must be unique.\\
\\The key name represents a configuration preference and the value name represents the setting for that preference.\\
Message Edited by Ryan Wright on 06-16-2009 10:14 AM

Go to See the other 3 answers

Can I add comments to a Configuration File?

Category:DefaultRelease time:-0001-11-30Views:130

If so, how? I want to be able to update the values in the file. At the moment I have lines beginning with a semi colon and am reading from the configuration file, but as soon as I enable writing to the file it gets messed up (="" added to the en[More]

Add comments to a spool file

Category:DefaultRelease time:2015-10-11Views:130

Is there any way to add comments to a spool file? Below is the typical output I have. I'd like to add comments to let me know what table has been updated or analyzed. Table altered. 708662 rows updated. Commit complete. Index created. Table analyzed.[More]

How can you add comments to a text file while using a Digital Waveform vi?

Category:DefaultRelease time:-0001-11-30Views:130

Hi. I'm very new to Labview. I have a txt file of 1's and 0's wired to a "read from text file" which is then wired to a "spreadsheet string to digital.vi" ("digital waveform") and lastly to a graph. I want to add notes to the[More]

Logging with jdk1.4 - how to add a handler using configuration file

Category:DefaultRelease time:2015-10-11Views:130

Hi, all I am playing around with java.util.logging in jdk1.4. In particular, I am using a properties file for configuration. However, one thing I couldn't do is to assign a handler, such as the ConsoleHandler, to the com.xyz.foo logger. Everything fo[More]

How do colleagues add comments and review .psd files in Acrobat?

Category:DefaultRelease time:2015-10-11Views:130

i work in Photoshop, would like to be able to collaborate with assistants and clients online - like, i believe, Adobe Live used to do... thx, c.Hi Bonus Studio, If you'd like folks to comment on your files in Acrobat, you'll need to first save your .[More]

Is there a way to simultaneously add text to Comments field for multiple files?

Category:DefaultRelease time:2015-10-11Views:130

Is there a way to simultaneously add text to Comments field for multiple files? I know I can use Option+Comman+i to bring up the Inspector window but it doesn't have a Comments field. For example, in iTunes you can select multiple files and change me[More]

SharePoint 2010 Allow User to Add Comments to Files in a Library and to the Header of the Web-Page

Category:DefaultRelease time:2015-10-11Views:130

(1) I need to allow an end-user to be able to add comments to files either when they are added to a library or after they are added. I didn't see a Column available for adding to a Document Library for "Comments". (2) I need the same user to be[More]

If I copy and paste a comment in a pdf, when I create an xfdf file the copied comment isn't included.  Is there a way to add these copied comments to the xfdf file?

Category:DefaultRelease time:2015-10-11Views:130

If I copy and paste a comment in a pdf, when I create an xfdf file the copied comment isn't included.  Is there a way to add these copied comments to the xfdf file?Hi Steve Whipple, This Link (Acrobat Help | Importing and exporting comments ) seems r[More]

Possible to add comments to a file?

Category:DefaultRelease time:-0001-11-30Views:130

Is it possible to add a comment to a File? I need to be able to add comments (short sentence) to some archives (TAR and ZIP) that I'm creating, but I don't see any native way of doing this. The best I can think of is to create a log that lists all of[More]

Comments in Pro*C Configuration files

Category:DefaultRelease time:-0001-11-30Views:130

Is there way to mark a line as a comment in a Pro*C configuration file?When I invoke Pro*C from within Visual Studio with the following pcscfg.cfg file +# The commented lines below are in the original pcscfg.cfg file. They+ +# are commented out here[More]

I need to Add the configuration file '.airinstall.cfg' to the air bundled runtime installer directory. where do i get the airinstall.cfg from

Category:DefaultRelease time:-0001-11-30Views:130

i need to Add the configuration file '.airinstall.cfg' to the air bundled runtime installer directory. where do i get the airinstall.cfg from what are the contents of the .airinstall.cfg file please help.http://helpx.adobe.com/acrobat/kb/acrobat-down[More]

Hot
Hi all, I would like some assistance in troubleshooting the web analytic problem I am experiencing with one of my farms. My web analytics reports stopped beeing generated recently and the uls logs have not been helpfull at this point. I have checked [More]
I have Acrobat 9 Pro installed on Vista 32-bit, but it can't even do simple PDF printing from something like Word or IE without getting "Access Denied." I have UAC-enabled and do NOT plan to disable it anytime soon. The Adobe PDF printer is inst [More]
I need to update my iPod software, but I don't want to if I'm going to loose all my music. I don't have any of the songs on my iTunes on my laptop because my laptop is new. I don't sync my ipod to my laptop for that reason.- Transfer iTunes purchases [More]
Hey ive heard that the nike+ adapter falls out of the new nano easily, is this true does any body have any experience with the new nano and nike+?No problems here with the Nike+ and the new Nano either. The graphics are a little easier to read when y [More]
Sorry for the somewhat indescriptive thread title, but with the problems being so far-ranging, it is hard to summarize them, or even remember 'em all. I just upgraded from a C2.1 to the 301. All I want is a sleek, fast, candybar that stays awake for [More]
Hello, I have a 2011 macbook air that shipped with 10.7.  I updated to 10.8 today and after the install and upon try to startup was met with the kernal panic multilingual 'there was a problem...you need to restart your computer...wait or press a key' [More]
i understand that I can get iBooks to read my books. How do I do that?You have to have the text message preview activated on the lock screen. I'm not happy with this as I would prefer siri to be able to read the text message, but not have the text di [More]
Hi  everyone, this is regarding the automatic mail generation in smartforms. Its like when you process the smartforms the mails are automatically shooted to the address maintained for eg usually to the vendors. So what I need is incase I proces my sm [More]
Hi All, I have created a report in the following format chart                                     chart Breakdown by Location    breakdown by work type location1 - count                worktype 1 - count location 2 - count               worktype 2 - [More]
gurus, below is my requirement,please give suitable solution BARCO / SAP Interface? What data is passed to SAP from BARCO? Need explanation of IDOC....What data is passed from SAP to BARCO? Need explanation of IDOC....What T-Codes are automatically g [More]