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
Firefox crashes quite often, especially when I have multi tabs open. I usually have to use CTRL ALT DEL and end the process as Firefox stops responding. My problem is not the crashing........it is the re-opening of the multiple tabs I had open, when [More]
Hello Everyone, I have an application , which has a report region of type SQL Query Region Source: select id, name from tableA I would like to make the name column as a link so that when the user clicks on a particular name, it should open up a form/ [More]
Dear Fellow SDNers, I seek your help on the following problem: Scenario : Inbound idoc which updates an Outbound delivery with Picked quantity, posts the goods issue and then creates billing document Approach : I am using the function module SD_DELIV [More]
I have a Canon HF G10 that is set to shoot in recording mode MXP with a fram rate of 60i.  When i import the video into FCPX i see 1920 x 1080 | 29.97 fps 1080i HD under the info tab for each clip.  Did i import it correctly?  Am i doing something wr [More]
After upgrading one of our production servers to CF8 we're getting errors under load while connecting to MS SQL 2000 data bases using the MS SQL 2005 JDBC 1.1 driver instead of the driver cf8 ships with. The following error is recorded in the logs: E [More]
Hi Gurus, Can somebody tell me how line item Dimensions and navigational attributes works technically? What are the pros and cons for them? Regards AlexHi Alex,             You will use navigational attributes based on how you want to track and repor [More]
How to enable Intel Virtualization Technology on Satellite U500 or if this feature is already available or not because im VMware configure in my laptop and when I wont to run it I'm getting the message *You have configured this virtual machine to use [More]
I want to edit this module, but can't find it on the Module Template, Content Holders nowhere...      module_productfeaturelist,featured,100,Default,,true Please help. Thank you!!Hello, That module is detailed here: http://kb.worldsecuresystems.com/1 [More]
using fire fox I go to hotmail lg in open new message and there is already a message there saying hi etc and information about a web site..it appears everytime I want to send a new message == This happened == Every time Firefox openedDo a malware che [More]
Working with a particular machine where it will not allow me to check the box to allow .MAC syncing (it's greyed out) for login keychain. Tried resetting the keychain and first aid to no avail. Can't figure out why it's greyed out. There is another u [More]