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
I am using 10g client to connect to a 9i Database on Redhat Linux AS 3.0. I am trying to submit a job via OCCI. I get back a jobId, but don't see the job in the user_jobs table or the result of the job being executed. I am using occi::Statement in th [More]
Hi I'm studying Oracle on db10g xe. it comes with default db (hr) and also with on line tutorial which is my starting point. I was studying trigger with example on EMPLOYEES table that is in tutorial and it's like this: CREATE OR REPLACE TRIGGER "SEC [More]
Hi all, When i executed the transaction IW32.Its displays changed by and created by fields. please any body can tell me how to find out the person  name who had made last change with respect to the field changed by. Please tell me the table and field [More]
Dear All,   I am facing an issue in Calculation schema determination for Scheduling Agreements. The issue is - "Appropriate calculation schema is not being determined when a scheduling agreement is being created" The required settings which have [More]
For some reason I can no longer open itunes on my computer. I was able to up until a month ago. When I connect my iphone, it does not automatically open either. I have tried uninstalling and reinstalling without help. I am running windows 7. I have d [More]
Hello all. I have a 3G iPad 2. When I restart the IPAD appears [FTL:MSG] Apple NAND Driver (AND) RW [FTL:MSG] FIL_Init [OK] [FTL:MSG] BUF_Init [OK] And the I tunes cannot restore my Pad Someone can give me a hand?Check the "Error 1603" paragraph [More]
New iMac, OS X Lion, Mail 5.1, everything migrated over from older iMac running Snow Leopard Getting used to the way Lion handles some things in Mail has been a challenge for one of my coworkers. But this one has me stumped. Normally, when you select [More]
Can we show system wide alert(notification) using any of the J2ME MIDP 2.0 function. It is something like we have our MIDlet is runing, and the we move to some other screen, likeContacts or Message, and afterwards some activity takes place in our MID [More]
When I burn my slideshow to a DVD, it loses focus.  How can I retain the resolution of my slides?DVD is a quite limited format and involves a very large mount of compression to get your large multi-megpixel images down to the DVD format (roughly equi [More]
SOAPFaultException :Failed to send requestHere is the stack java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Failed to send request; nested exception is: javax.xml.rpc.soap.SOAPFaultException: Failed to send request at com. [More]