Can I add comments to a Configuration File?

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.

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

Similar Messages

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

    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 txt file that will not be read in the digital waveform. i.e. Like how you use // or /* in a C++ program to show that you are writing a comment and not code.
    Labview version: 8.5
    Thank you

    You will just need in your text file a line at a time.  Search the string for the characters // or /*.  If it finds them, then loop back and read another line.  If it doesn't find them, you must have a good line of data and you can pass on to the next part of your cod.

  • I have an iPad 2 with iOS 5.1 and iBooks version 2.1.1. I have 64GB of storage, 80% is used. iBooks is using 250MB of storage. I have a large number of PDF files in my iBooks library. At this time I can not add another book or PDF file to my library.

    I have an iPad 2 with iOS 5.1 and iBooks version 2.1.1. I have 64GB of storage, 80% is used. iBooks is using 250MB of storage. I have a large number of PDF files in my iBooks library. At this time I can not add another book or PDF file to my library.  When I try to move a PDF file to iBooks the system works for a while...sometimes the file appears and than disappears....sometimes the file never appears. Is ther some limit to the number of books or total storage used in IBooks?  Thanks....

    Hi jybravo70, 
    Welcome to the Apple Support Communities!
    It sounds like you may be experiencing issues on your non iOS 8 devices because iOS 8 is required to set up or join a Family Sharing group.
    The following information is located in the print at the bottom of the article. 
    Apple - iCloud - Family Sharing
    Family Sharing requires a personal Apple ID signed in to iCloud and iTunes. Music, movies, TV shows, and books can be downloaded on up to 10 devices per account, five of which can be computers. iOS 8 and OS X Yosemite are required to set up or join a Family Sharing group and are recommended for full functionality. Not all content is eligible for Family Sharing.
    Have a great day, 
    Joe

  • Add comments to a spool file

    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.
    Table altered.
    Index created.
    Table analyzed.
    Commit complete.

    Perhaps you are looking for the PROMPT command?
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a90842/ch13.htm#1010446

  • Since Prelude doesn't work with Red footage, how can I add logging info to a file in Premiere Pro

    Since Prelude doesn't work with Red footage, how can I add logging info to a file in Premiere Pro CS6?

    RED footage has a restriction on metadata.  We are looking into what it would take to get full metadata support into our system, but you cannot tag red footage at this time.

  • How can i add comments to email

    Iphoto 11 email options are not as good as what was in Iphoto 09. For example you can't add coment info to each photo.
    How can i use the old style email ? Also how ca i revert to version 09?

    shcram:
    Welcome to the Apple Discussions. There's an AppleScript that will take the contents of the comments field and put them in the Title field so they will display on a slideshow. When you're done you can use the Batch Change menu option to revert the Title to the file names. See my post here for the link to the script: http://discussions.apple.com/thread.jspa?messageID=5400478&#5400478
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

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

    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 for the root logger works just fine. Here's the file I use
    handlers= java.util.logging.FileHandler
    .level= INFO
    java.util.logging.FileHandler.pattern = jdk14.log
    java.util.logging.FileHandler.limit = 50000
    java.util.logging.FileHandler.count = 1
    java.util.logging.FileHandler.formatter = java.util.logging.XMLFormatter
    java.util.logging.ConsoleHandler.level = INFO
    java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
    com.xyz.foo.level = WARNING
    com.xyz.foo.handlers = java.util.logging.ConsoleHandler
    Nothing comes out on the console and everything from the com.xyz.foo logger is logged to jdk14.log file.
    Can any one tell me why the last line has no effect?
    Thanks much!

    Logger configuration files are grossly misunderstood due in large part to extremely poor documentation (some of the worst I have ever seen for the Java platform). The LogManager class uses logger configuration files to do three things:
    1. Load porperties into a private Properties object that application programmers can subsequently access using the getProperty(String name) method in LogManager.
    2. Those properties (or else the documented defaults) are then used to configure the root logger as well as the "global" handlers that are used by the root logger
    3. Finally, whenever a logger is created the Properties object is checked to see if a key exists for the logger name + ".limit". If so, then the logger is assigned that level.
    Notice that nowhere in here does it say that a programmatically created logger is configured. In your case, you must invoke getProperty("com.xyz.foo.handlers"), parse the property value (which is a bit tricky if there is more than one handler class name), load and instantiate the handler class, and invoke addHandler. Great huh? I'm in the middle of a indepth study of logger configuration, and I can tell you for sure the static configuration using configuration files is an order of magnitude harder than dynamic configuration. It offers the advantage of field service engineers being able to change the logger configuration, but at a very significant cost.

  • How can I add a PSD logo watermark file to an image in CS4 or Lightroom3?

    Hi,
    I have a psd file with my company logo as a watermark. How can I add that file to an image in CS4 or Lightroom3. I am sure it is really simple and I am just a bit dopey but would appreciate the help.
    Thanks.
    Natalie

    This is fully explained in the help file. Hit F1 and go to using the watermark editor, you will see there is is also a video tutorial so I won't repeat the advice here.
    You will need to change the PSD to a PNG in order to use it and retain any transparency layers. Open the file in Photoshop and choose save for web, then select either the PNG 8 or PNG 24 preset and save a copy of the file.

  • Can you add comments to the XML reports other than one Block Comment and one Test Comment?

    I know how to use Block Comments and Test Comments but if I need to add more comments to my XML report in a test other than one Test comment, is there a way to do this?  In other words, I would like to be able to add say 5 comment lines for a single test.  Also, can a Test Comment or Block comment be more than one line in length?  If so, how do you do that?

    What version of TS do you have?  If you have 4.1 or better (might be possible in 4.0 I can't remember) you can just use the additional results.  So in the step properties you will see Additional Results.  Then just add as many as you want. 
    Then you will see it show up in the report like you want.  I couldn't get multiple lines to work in one comment.  I tried \n but that didn't seem to be supported here.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    StepComments.JPG ‏38 KB

  • How can I add the attachment list pdf file context to purchase order ?

    Dear all,
           I have use services for object in ME22N to attach PDF file to purchase order,I want to know how can I add the pdf file context to purchase order when I send the purchase order to vendor.
    Thanks in advance
    Best regards,
    Merry

    hi,
    attach document through Service for Object button. Service for Object button available down side of Command screen ( in your PO screen ME22N ) .
    Click your Service Object button -> Create -> Create attachment 
    then select your window directory ( which file you need to attach) select your file Now your system shows message  Service "Create attachment" is started. 
    Save again your PO. You can see (open) your attachment in same field ( Service for Object ) select and Create and check attachment list. You can attach as many document in your PO.

  • Can't add comments

    I have been having issues with my adding comments part in the blog of my page. I publish to .mac, and have the add comments box checked prior to publishing. When I publish, immediately after, I or other computers can leave comments. After a little bit of time, usually a couple of hours, anyone who tries to leave a comment gets the error message "This entry no longer exists. The entry may have been moved or deleted." Is there some sort of bug I'm hitting? My site is http://www.the-guesses.com if anyone wants to check it out.
    Thanks

    OK, this is really silly (on Apple's part) but I think I know what the problem is.
    Apple allows
    http://web.mac.com/mikeandjenn99/iweb/guesses/
    OR
    http://web.mac.com/mikeandjenn99/iWeb/guesses/
    to redirect to your site (notice the W/w in iWeb/iweb)
    HOWEVER, only with the capital W will your blog work!
    Try to enter a comment here
    http://web.mac.com/mikeandjenn99/iWeb/guesses/Blog/05BD4380-1535-4DEA-BE14-963EA AB6CB0B.html
    vs here
    http://web.mac.com/mikeandjenn99/iweb/guesses/Blog/05BD4380-1535-4DEA-BE14-963EA AB6CB0B.html
    So the solution is to make sure your http://www.the-guesses.com redirects to your site WITH a capital W!
    Hope that helps!

  • Can't open AirPort Admin Utility configuration file

    I'm using an AirPort Extreme Base Station connected to a cable modem through the WAN port and to my G4 Cube running OSX 10.2.8 through the LAN port. I also use an iBook and eMac with AirPort cards to wirelessly access my network. My problem is that I can not open the configuration file so that I can change my settings. I get an error message that AirPort Admin Utility can't read the configuration file of the base station. I tried resetting the base station to the factory settings, to no avail. So now I also can't set a password and encryption. Any help would be greatly appreciated!

    To clarify--I previously had a password protected network set up and working. I wanted to change the settings and couldn't open the config file. I reset to factory settings successfully, but still can't open the config file, which I need to do in order to encrypt and set a new password. Thanks!

  • How can I add all of my PDF files at once

    Is there any way to add all of my PDF files that are in different folder at once, kind of self search option that add the files automatically, thanks.

    I'd also really like this feature added (unless I'm just missing something that is)

  • How can I add a "Create New Text File" contextual menu?

    Hi,
    I'd like to add a "Create New Text File" contextual item. I found the "new text file" action in Automator, but I don't really know where to go from there... I want it to work on the desktop and in finder...
    Thanks

    See:
    Mac OS X Automation,
    Automated Workflow Tips,
    Introduction to Automator tutorial, and
    a four-parter on Automation in Snow Leopard by Sal Saghoian:
    Snow Leopard Services,
    Services for iPhoto,
    Safari and WebKit integration, and
    Installing and using services.
    Finally, 
    Developing AppleScript Applications and
    Apple's Automator Developer Documentation

  • I can't add comments to cells in excel

    It has been working fine up until this week, I've been able to add comments to individual cells in a spreadsheet but now it brings up the text box to type into and then before you get a chance to type it closes the comment box.

    http://www.microsoft.com/mac/support

Maybe you are looking for

  • ITunes library cannot load from NAS - Asking password when it should not...

    Hi all, I just updated from Windows 8 to Windows 8.1, worst idea ever. Tons of problems appeared including this really strange one. iTunes, for a reason or another, decided to reset my library path, which mean all my songs have the "!" symbol in fron

  • Converting Report into excel file

    Hello everybody i want to convert report output into excel format(in csv format) without using delimeted feature of Reports 6i. how can i do it.I have done it in Forms 6i using text_io package, but i'm unable to find exact query after running report.

  • Adobe: ActiveX vs Native in web dynpro

    Hello, has there recently (the last week or so) been an update on Adobe Reader or windows xp that makes the adobe forms not work anymore with web dynpro? Last week i had a simple form (activeX) in my web dynpro that was working fine. The form had two

  • IDCS6 MAC OSX: trying to make a map to new spot script

    Hello all. I have a plethora of InDesign files that contain a custom-named spot color called PMS 295. So that the colour can be properly mapped using our RIP it needs to have the correct name "PANTONE 295 C" but the correctly renaming the source of t

  • HELP----Inactive database connections.

    I have just deployed a JDeveloper BC4J application and to my surprise, when a user enters a module, the database connections are all Inactive in the database. All my users have their own user ids. I am using Jdeveloper 9.0.3.4 (build 1247) and 10gAS