removing a section of data in a file ini (config file)

Hello

I have a configuration file (ini file) that has a huge data (2000 lines) which contains Sections and keys. I would like to remove a Section and keys

I use a FGV (functional global variable). I would like to delete a part of the data programmatically in the file and write again.

Delete table is a solution, I know. Is there a better solution to use.

If you use the API of which NEITHER you Config file gives, it is the Delete Section VI and Remove key VI that sound as they do what you want.

Tags: NI Software

Similar Questions

  • Backup utility Windows 7 application ' are you sure you want to remove the most recent data from the backup file "even if I'm trying to remove the backup set is not the most recent.

    I'm trying to reduce the amount of space that my Windows 7 backup uses so I've come to the place in Windows 7 backup:
    Manage space > view backups...

    I am then presented a list of three backup sets:
    01/03/2012 to 01/04/2012
    12/07/2011 to 12/21/2011
    23/11/2011 to 30/11/2011

    I would like to remove the older two, leaving the most recent. However, this doesn't seem to work as expected. If I try to delete one of the two most recent ones (the first two in the list above) I get the following warning "Are you sure you want to delete this backup file.

    However, if I try to delete the last one in the list, I get a slightly different error "Are you sure you want to remove the most recent data of the file backup?"-sounds strange because it is clearly not the most recent backup according to the dates it's show.

    Of course, I can go ahead and ignore the warnings, but I fear that maybe there are some files in the last backup the value in the list that may not be right more recent set backs.

    In 2011, I thought this might be something wrong with the date formats vs US UK (I am in England so the above dates are in dd/mm/yyyy format and not in jj/mm/aaaa) - but now it's 2012 and I backup from 2012 and 2011 games and he always seems to think that the oldest backup of 2011 is the most recent.

    Any ideas? Can I delete the oldest backup sets (that is, the two that are from 2011) safely?

    Any help much appreciated - thank you.

    Simon

    Update: I checked on other PCs in the office and the situation is the same - is not only something strange on a PC.

  • How to remove header, time and date of the Subvi "export waveforms to the spreadsheet file?

    I use 'Export waveforms for spreadsheet File.vi' in order to export the labview data into a file.

    However, the default format is the following:

    waveform [0]
    T0 13/11/2009 14:54:34
    Delta t 0.001000

    time Y [0]
    2009-11-13 14:54:34 - 2.441406E - 3
    2009-11-13 14:54:34 - 2.441406E - 3
    2009-11-13 14:54:34 0.000000E 0

    Yet I am interested in only the actual data without header or stamp date and time, for example:

    -2.441406E - 3

    -2.441406E - 3

    0.000000E + 0

    Could someone help me please with the adaptation of the Subvi to my needs?

    Transposes set to true.

  • I have more than a single file for Mozilla in Windows Explorer. Can I delete the one with the dates of older files?

    My current version is 14.0.1 and show like Mozilla in Windows Explorer. Dates of the files are up to date. The second file in Windows Explorer is listed as Mozilla (2) and has files from 2010. The window add or Remove Programs page shows only a single installation. Can I safely delete the Mozilla (2) from the widows Explorer?

    My operating system is Windows XP - SP3.

    In this case, I'll try renaming the Mozilla (2) and make sure that everything works. If so, you can delete it.

  • Remove # and clear the line from txt files

    Hello

    I have problem with my program.

    I need to remove the empy lines in my txt file.

    This is file look like:

    # Standard capacitance data file
    # Model capacity: parallel (K = 3.0)
    # Created by: ECT32v2 for Beta2.25 of Win32 (July 10, 2003 01:54:24)
    # Source: rec_flow_f45_v800_n2.bcp
    # Description: contents of the buffer to capture mode
    # Date: 12:04:43 GMT standard time, 29 March 04
    # Electrodes = 8, measures = 28
    # Data for plan 1

    # 1 frame (0 msec)
    0.006-0,001-0.004-0, 002 - 0.028-0.031-0,002
    -0.008-0, 005 - 0.007 - 0.024 0.005 0.004
    -0.014-0, 002 - 0.011-0.004 0.002
    -0.008 - 0.003 - 0.004 0.003
    -0.011 0.001 0.002
    0.005 0.004
    0,008

    # structure 2 (10 ms)
    -0.002 0, 005 - 0.008 0.006-0,002 0,023 0.011
    -0.008-0.004 - 0.004 - 0.003 0.010 0.001
    -0.007-0,001-0,012 0.007 0,008
    -0.015-0.004 0.002 0.001
    -0.007-0,002 0.001
    -0.002 0,008
    0.005

    I want to remove all empty lines, lines containing ' # '.

    I try as an attachment, but it does not work.

    How can I do this?

    Regads,
    Sorry for my English

    Ben Merci for example. Somehow, I missed the framework which enabled search expresion. Your example has sent me to the help files to understand. I have modified my first code for the show method, I hope I have the correct explanation. Not trying to do someones homework for them, but for those who need a quick start, maybe this will help someone else along the way.

  • Try to write data to the file, but error 200279

    I have problems when writing data to a file. 10 seconds in the recording process, I get the error 200279. I did some research on the subject, but I am unable to corect my code. I think I want to increase the size of the buffer, but he prefers, I suppose, to read the data more frequently. The way that I save my file is, before starting the VI, I attribute a location and name of the file (e.g. data.csv). The date and time is added at the end of the actual when file the I start to record the data (e.g. data_07-26 - 13_122615.csv). If the file does not exist, it creates a new file, and then adds the data of this file after each iteration of the loop. The reason why I did this way was so I don't have to worry about running out of memory, but apparently my code is wrong.

    I will include a copy of the faulty section of my code. Any help would be greatly appreciated.

    Thank you.

    Your problem is that the writing on the disk is slow.  It is pretty slow so it causes your DAQ buffer overflow and cause error and loss of data.  What you need to do is to implement a producer/consumer.  This will put the data acquisition and recording on the disc in separate loops.  This will allow data acquisition work at speed, that he needs to deal with incoming samples and writing on disk can run at all what pace, he can.  You send data from data acquisition to the loop of logging using a queue.

    You can also think about changing how you write to the file.  VI is constantly open and close the file, which is a very slow process if you do it inside a loop.

  • write table 2D data in the file but the file is empty

    Hello

    I tried to write all reading of powermeter data to a file in two ways, I can see the output in the Arrais indicator data but when I write to "File.vi of the worksheet" or write to 'text file', the files are empty.

    Please help me.

    Try to remove the vi "STOP".

    I suspect, it prevents the main vi before the backup occurs.

    As a second point: given that you save data inside a while loop be sure you add the data from the file and not crash each time.

    wire that is a 'real' terminal 'Add file '.

    Kind regards

    Marco

  • LabVIEW backup only 2 seconds of data in the file

    Sorry for this question of beginner, but after a few hours of searching for an answer and trying to solve the problem, I still can't understand.

    I use a DAQ Assistant vi, displaying the data on a chart in waveform, and to help to write it into a file as vi to try to save the data I collect (this is a while loop). A .tdm file is created successfully, but only about 2 seconds of data (25 k samples) are saved in the file. In addition, I write custom vi set to 'Add '.

    I need to save the data for the duration of my collection (between 2-20 min).

    I'm sure the solution is brutally simple, but any help would be greatly appreciated.

    Thank you!

    surffl wrote:

    Yes, I use the importer of CT in OpenOffice as provided for by the regulation.

    Do you trust to OpenOffice?  What do you get when you use the importer with MS Office?  I don't think you have a problem with your VI, but a problem with the importing program.  LabVIEW is certainly save more than 1 second of data in the file.  I thought that after each section headers might have caused and the file reading problem, but if you say settting it only write a header still causes problems with importing the data, I think that the problem comes from the importer.

  • Write delay failed unable to save all the data for the file $Mft

    Have a frustrating problem.  Help is greatly appreciated.  Learned the hard way and lost a dwg important issue which was unrecoverable.  Bought a new drive external hard seagate.  Could not back up the entire system with software pre-installed.  Download acronis true image home 2011.  Tried to backup system.  Receive error when trying to backup messages; 'Delay to failure of Scripture; Reading of the sector; Windows was unable to save all the data for the file $Mft. The data has been lost.  Have tried many fixes.  Unable to disable write caching method (grayed out / unclickable).  Played regedit 'EnableOplocks' is not listed to select.  Attempted to run microsoft 'fix it' and got the blue screen of death.  Short hair out of my head.  Suggestions appreciated.

    I don't know where Microsoft 'Technical support engineers' get their information.

    Write caching without a doubt "does apply to external hard drives", but it is usually disabled to prevent to sort the problem you are experiencing.

    I've seen several positions reporting to the same question that you do.  All of these positions were with SATA drives.  Is your Seagate eSATA drive?

    The disc is recognized as an external drive in Device Manager?  In Device Manager, go to the drive properties dialog box and click the policies tab.  An external drive should have two options: "Optimize for quick removal" and "Optimize for performance".  An internal hard drive shows the options as gray (with 'performance' selected), but there should also be a checkbox "Enable disk write cache" under the second option.

    What shows in your policies tab?

    If I understand correctly, "writeback" or "write behind" is implemented by disc material or its pilot.  If the option is not available on the drive properties > policies tab, I would suggest to contact Seagate support.

  • Access to the data in the file permissions

    I have a html file that is generated by a third-party application.
    I want to give only the permissions to write data in the file, I don't want to give permissions to remove content.
    (it's not the file's content in the file)
    How can I put it please suggest me.

    As I said...  I don't think that what you want is possible.
    If someone can write (Edit) a file, then it can also remove all the contents of this file.

    It seems to me that you are looking for a software revision control... something that helps other people to make changes to a [copy of a] set of files, but gives a control authority the word to say as to when and if changes go in the direct copy.  It also regression to an earlier point in time.

    "Comparison of revision control software.
     <>http://en.Wikipedia.org/wiki/Comparison_of_revision_control_software >

    HTH,
    JW

  • Explorer Windows in Windows 7 change suddenly last updated Date of the files attribute

    I'm moving from XP Pro to Win 7 of last month during this process, I came across a disturbing behavior in Windows Explorer in Windows 7.

    In Windows 7 (and I hear Vista as well) Windows Explorer will sometimes change the file Date changed when slide it / file to a new location.  I spent hours researching this issue.  In some discussions, some participants said it is a reasonable thing, since copying a folder with files creates a new folder and new files, so a new modified Date is guaranteed.  I can understand that as a basis to change the creation Date.  This was the behavior under XP and I think that NT as well.  However, changing the Date of change is a fundamental departure from how the system of files are featured in the past, and it is also a serious departure from good sense.  At the very least, it will make it impossible to find or organize files by date of update, since the original modification Date (date the actual content of the file may have been modified) is lost.  It also seriously decreases the possibility of finding files duplicated by this attribute when simply copy a file it modifies.

    Change the folder view options can prevent this behavior (Options: view folders: check always show icons, never thumbnails).  In addition, edit a file to read-only will also stop this change of Date of modification.  However, none of these options provide a viable solution to this problem.  All first, change the option to display file then prevents look a thumbnails of the image files.  Change once the copy of file causes the copied files to change Date change date created.  The same is true for the readonly attribute (removing it causes the modification Date change), not mention that it is often impractical to effectively apply this strategy.

    I also note that this behavior is not consistent in all areas.  Files copied from a shared disc on a PC network do not seem to this behavior.  But, files and folders transferred by using Dropbox (www.dropbox.com) show the unwanted behavior.  Worse still, the behaviour was not consistent within the folder.  I transferred a file with the 2007 via Dropbox eml files.  In most tests, once the folder has been moved and dropped on the Win 7 machine (whether copied or moved) the Date of editing files has been changed to take account of the date and time that they were dropped.  However, in one case, two of the files has not changed the Date of change.  By clicking on the file or even open it to read has not made a difference.  The modification Date remained unchanged.  I don't really know why this was the case in this instance, given that these same files has been modified Date change in previous experiences.

    Frankly, I'm puzzled and dismayed that this did not become a more important issue.  Do not have a lot of imagination to see how this problem might affect users old files of e-mail to archiving as LME and anyone copy older files, who later need to search or sort them by the Date of change.  There are solutions that I know, as the compression of the files before any copy or use Robocopy with the appropriate options, but they are much less practical as drag - drop.  Furthermore, drag and drop is now so embedded in users what their likely natural choice for file copy or move.  Once the modification Date is lost, it cannot be found without a restore of backup files - once again, an unrealistic option and a lot of time.

    I think it is a serious problem that needs to be processed quickly by Microsoft.  Good design keeps logical and mitigates the factors that can lead to human error.  The above behavior fails both these needs.  Anyone found a solution for this (maybe change registry) or to know if and when Microsoft plans to approach this?

    I've just dealt with the same problem when copying all the contents of my hard drive and found an impressive (and without :-)) Microsoft Utility called RichCopy which solves this problem and makes it much easier to copy a large number of files/folders :-))

    Here is a link to the article about this in Microsoft TechNet Magazine described the tool, which has a link to download it as well: http://technet.microsoft.com/en-us/magazine/2009.04.utilityspotlight.aspx

  • 5 Lightroom sometimes fails to load EXIF GPS data from .jpg files

    Until I Lightroom, I used geoSetter to add GPS data to my .jpg files. Most of them have loaded up in LR without problem, but for some of them, Lightroom could not import the GPS data. I used to compare GPS data in the loaded files OK and those who have not noticed that some of the problem files do not have exiftool: GPS, GPS Time Stamp, dater GPS map data. I used exiftool to change these in the file, Lightroom still not managed to load GPS data.  Anyone has an idea why Lightroom 5 sometimes fails to load EXIF GPS data from .jpg file

    = P3207532.jpg - data from GPS not imported into Lightroom

    ID of the GPS Version 2.2.0.0

    GPS Latitude Ref North

    GPS Longitude Ref is

    REF Altitude GPS altitude

    Time GPS 2015:03:20 02:18:36Z

    GPS Latitude 20 deg 54' 41.68 '' N

    GPS Longitude 107 deg 0' 5.47 "E

    GPS Position 20 deg 54' 41.68 '' N, 107 deg 0' 5.47 "E

    = P3207533. JPG - Imported data GPS OK in Lightroom

    ID of the GPS Version 2.2.0.0

    GPS timestamp 02:22:26

    GPS map Datum WGS-84

    GPS Date Stamp 2015:03:20

    Time GPS 2015:03:20 02:22:26Z

    GPS Latitude 20 deg 54' 43,41 "N

    GPS Latitude Ref North

    GPS Longitude 107 deg 1 9.10 ' E

    GPS Longitude Ref is

    GPS Position 20 deg 54' 43,41 "N, 107 deg 1 9.10 ' E

    = P3207532.edited.jpg - data from GPS not imported into Lightroom

    ID of the GPS Version 2.2.0.0

    GPS Latitude Ref North

    GPS Longitude Ref is

    REF Altitude GPS altitude

    GPS timestamp 02:22:26

    GPS map Datum WGS-84

    GPS Date Stamp 2015:03:20

    Time GPS 2015:03:20 02:22:26Z

    GPS Latitude 20 deg 54' 41.68 '' N

    GPS Longitude 107 deg 0' 5.47 "E

    GPS Position 20 deg 54' 41.68 '' N, 107 deg 0' 5.47 "E

    The problem with P3207532.jpg is that it contains two sets of GPS, a values in the section of EXIF metadata in the XMP metadata section:

    $ exiftool -a -G P3207532.jpg | grep -i gps
    [EXIF]          GPS Version ID                  : 2.2.0.0
    [EXIF]          GPS Latitude Ref                : North
    [EXIF]          GPS Latitude                    : 20 deg 54' 41.68"
    [EXIF]          GPS Longitude Ref              : East
    [EXIF]          GPS Longitude                  : 107 deg 0' 5.47"
    [EXIF]          GPS Altitude Ref                : Above Sea Level
    [EXIF]          GPS Time Stamp                  : 02:22:26
    [EXIF]          GPS Map Datum                  : WGS-84
    [EXIF]          GPS Date Stamp                  : 2015:03:20
    [XMP]          GPS Date/Time                  : 2015:03:20 02:18:36Z
    [XMP]          GPS Version ID                  : 2.2.0.0
    

    But the XMP section contains an incomplete set GPS fields. Note that XMP:GPSDateTime specifies a time other than EXIF:GPSTimeStamp.

    I don't know which of your programs may have created these XMP values false, incomplete, but they confused LR.  According to the specifications of the Working Group of the metadata, which accepted LR, LR, choose the EXIF GPS values and false XMP values should not confuse it. But LR is preferring the XMP values and then conclude it is not all the GPS coordinates.

    You can work around this bug in LR by doing:

    ExifTool - xmp: gpsdatetime = - xmp: gpsversionid = file

  • How to remove a store of data with force

    Last week we did a migration of old data spinning again spinning. After in the opposite direction of all the virtual machines to the new file server, we made all virtual machines online since the new file server. Now the thing is, I can't delete the existing data store (old spin). When I tried to delete the VC data store, it throws an error:

    error.JPG

    Y at - it a command/tip to remove the store of data with force?

    Storage.JPG

    Thank you

    Ganesh

    See this thread:

    http://communities.VMware.com/thread/89271

    André

  • Acquire data from a file using a dialog popup on a stamp object tabs-delimited

    I'm trying to import data from a file delimited by tabs using a dialog popup on a stamp object.  I bought the book by Thom Parker -all on the stamps of the PDF in Acrobat and paperless workflow and have worked through the examples in the Appendix.

    My problem is to understand how to integrate the data in the object of the file dialog box.

    I'm not plagiarizing his book - so am elect at this time is not to justify my code.  The script reads the file, by simply providing only not in the accounts rendered file so that I can choose which line to import into the stamp.

    I typed in the code exactly how the book described, but when the popup dialog object is selected, there is nothing in the menu dropdown.  When I click OK, the first record is placed on the stamp - except for the fields that I am eager to appear in the popup box object dialog box.

    I searched the forums, as well as the JavaScript reference.  There are examples of popup dialog object, but none of them show how to import data from a file - just for the items to be of type in the list.

    Any help would be greatly appreciated!  I tried to work on this for several months now.

    I got the files directly from tdjohnson7700. Here are my findings:

    There are two problems with your files:

    You reference an object of 'Dialogue', even if you declared as 'dialogue' - JavaScript is case-sensitive, so you must use the lowercase version.

    And then you have an additional column of data in your text file, Acrobat doesn't like it and reports an error. You can see when you use the tools > forms > Forms Options more > function to import data to import data from your text file. You must either add a form field named "last" to your stamp, or you need to remove this column from the text file. After these two changes, the stamp works.

  • Move the data to another file system file - affects on the day before in a DG?

    If I want to move a file of data to another file system, because the current file system is full, I'd take the tablespace offline and unix, copy the data file to the new location and rename the tablespace to the new location.

    How would behave the night before in a dataguard environment? The DOF would apply, but could I take a tablespace offline space, waiting for read-only copy the data file on the unix sleep?

    Hello;

    I think that this would be ' rename a Datafile in the primary Database.

    If you don't rename the data corresponding to the watch system and then attempt to refresh the database backup control file, the standby database will attempt to use the data file renamed, but it will not enter into it. (the change is not propagated to the database pending)

    See Section 8.3.4 rename a data file in the primary database in the Document Oracle B14239-05 (Oracle10)

    This is a step by step on how to handle this.

    OR

    Chapter 9.3.4 rename a data file in the primary database in Oracle Document E10700-02 (Oracle 11)

    Best regards

    mseberg

    Published by: mseberg on December 1st, 2011 09:15

Maybe you are looking for