[.ini files] Get the value of multiple labels with the same name

Hello!

In an ini.files, I need to get the value of each tag named in a certain way in a section, but unfortunately, I have 3 or 4 tags with the same name in several sections. I don't know how to retrieve these values, the program always consider that the first tag and not others, I tried to remove each tag after obtaining its values, that he did not.

Does anyone have an idea to solve the problem?

Thank you!

As you can read in my last post, you must read and throw 'x' lines:

OpenFile)

Skip lines

for (i = 0; i< x;="" i++)="" readline="">

Start reading the useful lines

ReadLine () / / read a line

... / / Interpret the line

Don't forget to add a control during i/o operations of robust error and to check the end of the file.

Tags: NI Software

Similar Questions

  • I want to move virtual machines to a folder called Linux name, but we have several file of the same name in our Datacenter, please give me PowerCLI Script to move exactly

    I want to move virtual machines to a folder called Linux name, but we have several file of the same name in our Datacenter, please give me PowerCLI Script to move exactly.

    I tried to use for the function FolderByPath below, but don't know how to use it and have worked. Please help me in this.

    Function Get-FolderByPath {}

    < #.

    . Records of recovery SYNOPSIS by giving a path

    . DESCRIPTION the function will retrieve a record by its

    path. The path can contain any type of leave (folder or)

    Data Center).

    . Author NOTES: Luc relaxing

    . Path PARAMETER

    The path to the folder.

    This is a required parameter.

    . Path PARAMETER

    The path to the folder.

    This is a required parameter.

    . PARAMETER separator

    The character used to separate the leaves in the

    path. The default value is ' / '.

    . EXAMPLE OF

    PS > Get-FolderByPath-path ' Datacenter/Folder1/Folder2 ".

    . EXAMPLE OF

    PS > Get-FolderByPath-path "Folder1 > Folder2"-separator ' > '

    # >

    (param

    [CmdletBinding()]

    [parameter (Mandatory = $true)]

    [System.String []] ${Path}.

    [tank] ${delimiter} = ' / '.

    )

    {in process

    If (((Get-PowerCLIConfiguration).)) DefaultVIServerMode - eq "Multiple") {}

    $vcs = $defaultVIServers

    }

    else {}

    $vcs = $defaultVIServers [0]

    }

    {foreach ($vc to $vcs)

    {foreach ($strPath in $Path)

    $root = get-file-name of the server data $vc centers

    $strPath.Split ($Separator) | %{

    $root = get-inventory-name $_-location $root - server $vc - NoRecursion

    If ((Get-stocks-localisation $root-NoRecursion |)) Select--ExpandProperty name)-contains "vm") {}

    $root = get-inventory-name "vm" - location $root - server $vc - NoRecursion

    }

    }

    $root | where {$_-is [VMware.VimAutomation.ViCore.Impl.V1.Inventory.FolderImpl]}|% {}}

    Get-file-name $_. Name - location $root. Parent - Server $vc

    }

    }

    }

    }

    }

    You can try to retrieve the object file by steps as well.

    Something like this for example

    $folder = get-data center-name 'LTX01-G8 | Get-file-name "LTX-servers | Get-file-name "LTX servers 0000 - 0299. Get-file-name Linux

    I guess the first qualification in your path was the data center.

  • Batch to replace the placeholders in the files of the same name?

    Hello

    I am designing a photo slideshow in AE and while I'm waiting at the end of the images, I create a model using precomposes placeholders.

    I named placeholders 'Image_01', 'Image_02' etc.  So, if I name the file image to match, can I say AE to connect all the placeholders in the file of the same name?  I'll have a lot of images, so that would be a gain of time compared to the restoration of the links individually!

    Thank you

    Just create a dummy image externally set and use that then trade out. AE does not care what is content, it seems that for a path.

    Mylenium

  • I have two files of the same name in the same directory. If it can happen?

    I've attached a screenshot of this. This isn't a photoshop, I always have that. There are two folders named my videos in the same directory T. However when I look through the window run, typing T:\, it showed my videos and videos such as fall down in this directory...

    One of the record is fair 'videos' but configured (in desktop.ini) appears as "my videos."

  • Return of the mistake of MUSE: why do we not have several files with the same name?

    Well - I thought I had all this worked and fixed, but I met the download error 'Why do we have several files with the same name' once again.  (I downloaded all the files several times today in order to 1) works the way it worked the last time and 2) get an OAM file that is not loading for some reason any load again and the download takes about an hour to transfer all the files manually.

    To recap:

    (1) an option "Upload only modified files" returns the 'Muse has encountered an error and closes.  Why do we have several files with the same name? "error just as before.

    (2) a full download will work but takes forever and is NOT a substitution for work changed files option.

    Please advise with possible solutions!

    -Dave

    Is it possible to have two .oam different files in different folders on your computer where the .oam files have the same name? I'm theorizing that there may be a bug in the treatment to ensure the folder created for a .oam placed on the server receives a unique name, particularly in the case of a partial update of the site on the server.

    Please send us the .muse file and all the files in .oam related to [email protected] along with a link to this topic for the context so we can attempt to reproduce this error and isolate the root cause. If files are larger than 20 MB, you'll need to use a service such as Adobe send & Track, Dropbox, creative cloud, WeTransfer, etc. file sharing. Thank you.

  • Replace the files with the same name - crush

    Everytime I go to save a file (in the office) for example, if this file has the same name with another in the save destination I'm asked if I want to replace it with one that I am saving at this time.

    I push the button no and I choose a different name for the file.

    What I want is this:

    If the file has the same name I want to be saved anyway, and in his name a number is added which means that it is another file.

    ex, jane, and jane (1)

    I want the 1 are added automatically. I noticed these when I save a file after scanning a document using the windows fax and scan feature.

    How do I develop the functionality usually precedes for windows.

    It is something specific to the program. The notebook is not programmed in this way.
     
    --
    ..
    --
    "JimVag" wrote in message news: b2bb4770-bd85-44b9-987b-33ccbd4c3dd0...
    > Everytime I go to save a file (in the office) for example, if this file has
    > the same name with another in the save destination I was asked if I
    > want to replace it with one that I am saving at this time.
    >
    > I don't press the button no and I choose a different name for the file.
    >
    >
    >
    > What I want is the following:
    >
    > If the file has the same name I want to be saved anyway, and in his name a
    > number is added, which means that it is another file.
    >
    > ex, jane, and jane (1)
    >
    > I want the 1 are added automatically. I noticed this when I'm
    > saving a file after scanning a document using the Windows and scan fax
    > feature.
    >
    > How am I going to extend the feature generally above for windows.
    >
    >
    >
    >
    >
     
     
  • I changed somehow all my files with the same name, how the other way around how they had before

    I tried moving a file in My Documents to a new subfolder, but somehow ended up changing all my documents and files to the same name.  How can I reverse this back to how it was at the beginning?

    ALT + type EU or Ctrl + Z is the last Undo action.

  • How read datalog multiple files at the same time?

    Hello friends...

    can someone help me to show how read datalog multiple files at the same time?

    Here is the example of my case.

    I have 500 files in a folder. each file contains a waveform and its setting.

    and then I want to do a card spectral these files, because these files have been saved in the order.

    the point is to know how to read these 500 files at once? I made a program to read these files, but the program can read these files in one by one. So it is very uncomfortable to read 500 files one by one. can someone help me solve this problem? Thank you. I hope you can show me the program. Thank you again...

    Hi jojo,

    Well, in the range of functions daughter, you will find a function to list the contents of the folder. This allows to get the names of all the files datalog, and then use a loop FOR to read.

    No one is obliged to provide 500 names of files manually - that's why we use a programming language to let the computer do the stupid work

  • Multiple files of the same image.

    Hi all. I use Bridge on my Apple iMac to view and work with my photos. When I sync my iPhone on my iMac it duplicates all photos again. So I have in some cases on an exact same hundred photos. IE it is not ignoring the existing files, just copy them over and over again, everytime I sync. It's taking a huge amount of space on my Mac. When I go into 'Images' on the Mac through Finder there are no duplicates, in the bridge.

    I have 2 questions:

    (1) there must be something wrong with my settings when I sync the phone and click on "Get photos".

    Please can someone advise what boxes should be checked? This will stop if all goes well the multiple duplicates that passes for future synchronization.

    (2) what can someone advise a simple way to remove all the multiple files in bridge and just keep one file for each photo. Making manually going a hundred years!

    Hi Richard,

    You say that when you go into images, you see only simple images. It is not possible to have multiple images on a single image. So somewhere on your Mac is one or more files with copies of your images.

    Given that the bridge does not show images of several files at the same time (unless you have told bridge to access all images embedded in the same folder of subsequent records).

    What you can do is click right (or Ctrl-click) on the image and select "reveal in Finder," halfway. That will show you where on your disk hard the images are. If they are outside your image folder that life is easy: simple to do a command for that all images in this folder are selected and send them all in the trash. Since you have the originals in your pictures folder, you may not get rid of everything except copies.

    Now, the problem itself. You do a synchronization of images in Bridge or from iTunes?

    Let us know how you train with all of this.

  • Loading multiple files using the same interface in ODI

    Hi all

    We load multiple files using the same interface and get the error "java.sql.SQLException: ORA-00942: table or view does not exist" while inserting record in the staging table. It looks like the same temporary table is used when loading multiple files and the error. Grateful if someone offers a solution to avoid this error.
    We use the following KMS:

    (1) LKM SQL file
    (2) IKM Oracle SQL COMMAND append.

    Receive a quick response.

    Thank you
    RP

    Hello

    See this http://odiexperts.com/interface-parallel-execution-a-new-solution

    Thank you
    Fati

  • I am trying to install a program and I get entry point getdlldirectoryw could not be found in the library of links Dynamics kernel32.dll file and the same for shreggetvaluesw to shlwapi.dll

    I am trying to install a program and I get entry point getdlldirectoryw could not be found in the library of links Dynamics kernel32.dll file and the same for shreggetvaluesw in shlwapi.dll. How can I fix the problem.

    You have all your current updates?
    Go to windows updates and see if there are updates that you do not have installed.
    The error message seems to indicate that your copy of XP has not been updated.

    Updated and let us know if you still receive the error message.

    Thank you

    Marilyn

  • When I try to copy files to a CD, I get message "Windows has a problem to copy this file to a CD." How to fix? I get the same message that I click on "Copy to CD" or drag the file to copy to the CD player.

    When I try to copy files to a CD, I get the message "Windows has encountered a problem when trying to copy this file."  I press the button "Retry" without any result.  I get the same message that I have click on 'Copy' files on a CD or drag the files to copy to the CD player.  I was able to copy these same files to a CD a few days ago.  Thanks for the suggestions.

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    1. don't you get an error code along with this error message?
    2. what CD burning software is installed on your computer?
    3. what kind of CD do you use to burn?
    4. What is the status of the CD - DVD drive in Device Manager?

    Method 1.
    Let us first check the status of the optical drive in the Device Manager. Check if there is no error code or yellow mark is listed.
    Reference:
    Explanation of error codes generated by Device Manager in Windows XP Professional
    http://support.Microsoft.com/kb/310123

    Method 2.
    If the problem is to start the computer in a clean boot state and check if you are able to accomplish this task.
    Reference:
    How to configure Windows XP to start in a "clean boot" State
    http://support.Microsoft.com/kb/310353/en-us
    Note: When you are finished troubleshooting, follow the steps as explained in the article to reset the computer to start as usual.

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Whenever I try to download a file from the internet it get the same message everytime "he could not open the Internet Explorer Web site.

    Loading of the Internet

    Whenever I try to download a file from the internet it get the same message everytime "he could not open the Internet Explorer Web site.  The site requested is either not available or cannot be found.  "Please try again later ' this happens for all sites, I try to download from... Please help.

    Hello

    To work around this problem, follow these steps:

    1. start Internet Explorer.
    2. on the view menu, click Internet Options.
    3. on the Advanced tab, clear the do not save encrypted pages on the
    disk check box.
    4. go to the page where you received the error.
    5. right click on the file link, click on save target under, select one
    destination and then click Save.
    Good luck!

  • I get the same files repeat KB and how to stop it?

    I get the same files repeat KB and how to stop it?

    The KB record number are KB2478663 and KB2518870.

    Mike

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_update/how-to-stop-the-KB-file-from-keeping-repeating-to/21fb21b2-9a13-4261-9c1a-e7ef90a9e6a0

  • I get the same error message and cannot open a PDF file

    I have a link to an application that I am trying to download and complete. By default the link my browser to open. what he does normally. However, this document was a mistake. He said that I need the latest version of Adobe. So I downloaded the application, open the PDF file in the app and get the same error message. Help!

    Hello

    You see the following error message when you open the PDF document?

    If so, it is a special type of PDF created with Adobe LiveCycle Designer form called "Dynamic XFA".

    Acrobat Reader mobile apps (for iOS, Android, Windows Phone) do not support XFA forms.

    Please download the PDF document on your Windows or Mac computer and open it with Acrobat Reader DC desktop version.

    Please let us know if you have a different problem.

    Sorry for the inconvenience.

Maybe you are looking for