CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2000
    Location
    CA, USA
    Posts
    305

    Reading an INI file

    Hi all,
    I have an INI file containing sections,where
    each section contains key-value pair. for e.g.

    [DATABASEINFO]
    DatabaseName=xxx
    UserId=yyy
    URL=zzz

    Is there any class in Java that can get me the
    keys and values for a specific section. I tried
    using the Properties class, but it doesn't
    support sections. It gets me the key-value pair
    if no sections are present. With sections, it
    totally messed up things.

    Any suggestions!!!

    Thanks
    Kannan




  2. #2
    Join Date
    Sep 1999
    Location
    Madurai , TamilNadu , INDIA
    Posts
    1,024

    Re: Reading an INI file


    Hi kannan,

    There is an article related to this topic in code guru. Check whether it's useful to you ..

    http://codeguru.developer.com/java/articles/655.shtml

    Poochi..


  3. #3
    Join Date
    Jan 2000
    Location
    CA, USA
    Posts
    305

    Re: Reading an INI file

    Hi Poochi,
    Thanks a lot. It was indeed useful to me.

    Kannan



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured