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
Really weird behavior I've noticed with iTunes 10 - when I add a new album to my iTunes library, and then sync my iPod, the first track of the album isn't copied over. Sync the iPod a second time, and the missing track is copied over. I've noticed th [More]
Since I have the bestbuy(canada) exclange plan, I can exchange my 3g 8Gb for 16gb 3gs since I paid $200 for the 3g. They will give me a brand new 3gs only if theres a problem with my iphone 3g, unfortunately thers none but I wouldnt mind to lie for a [More]
Hi all, I am currently working on Oracle EBS auditing and performance tuning project. After assessment phase, I am going to give a proposal about how to improve performance of entire systems to my senior manager. But it is the first time I work on th [More]
Hi all, We have an workflow issue here. Workflow for trip approval is designed in a way that after it gets approved from the manager, it goes to FI for further processing.Now the trip is getting locked when it is a"wating for FI approval" status [More]
can any body give me the tables used in sap-plm and the flow of plm.Hi, PLM is very huge module in itself, so there no such pre-defined flow in PLM, yes it is available in CFolders & for CProjects but not for complete PLM, As PLM involves Material Ma [More]
Are there any views/tables that we might be able to use to query the Security settings in 11g AW? In AWM 11g we have the ability to grant users/groups security at a cell level, with this functionality there is no need for us to maintain the PERMIT_WR [More]
My wife and I each have an Itunes account.  We find it crazy that we have to potentially purchase the same stuff twice.  We do have most of the music on my account, but most of the business apps on her account.  We each have ipods, each have ipads, i [More]
i got a free website template to try out at this link: http://www.interspire.com/templates/view/117 i am unable to figure out how to export the psd file from PS to DW like they did. When you open there index.html it looks exacly the same as there psd [More]
Hi,      I would like to plan for capacity required to complete inspection lots at our labs. This should include inspection types for 01, 03, 04 and 08. Is there a way I can do this in SAP ? I am planning to use an enhancement and create a planned or [More]
Hello All, I have a case that when MRP creates an order for ITEM1 I need MRP to also create an order for the component requirement quantity of the order regardless of unrestricted stock.    Example ITEM1 I have a production order for 5000 which has a [More]