B4J Library db2000.B4J.INI

Discussion in 'B4J Libraries & Classes' started by maXim, Jun 3, 2014.

  1. maXim

    maXim Active Member Licensed User

    db2000.B4J.INI is a small and simple library for creating and managing the INI files with the ability to handle the values type of the individual keys for each section.

    A brief description of the individual methods is available at the following link:

    http://www.db2000web.net/db2000 eXperiences/documents/Java/db2000.J.INI/

    +----------------------+
    | ...::: UPDATE :::... |
    +------------+---------+
    |posting date| version |
    +------------+---------+
    | 2015-06-24 | 1.0.5.0 |
    +------------+---------+
     

    Attached Files:

    Last edited: Jun 24, 2015
  2. maXim

    maXim Active Member Licensed User

    luke2012 and Sytek like this.
  3. magoandroid

    magoandroid Member Licensed User

    Grazie Massimo e buona giornata.
    MAgo
     
  4. miquel

    miquel Member Licensed User

    Thanks!!!
     
  5. Sytek

    Sytek Active Member Licensed User

    This is Nice for those devices imei-less, well done, appreciate ;)
    Thank's
     
  6. maXim

    maXim Active Member Licensed User

    Hi All,

    a new version (1.0.5) is available for download from the first post...
     
  7. jmon

    jmon Well-Known Member Licensed User

  8. maXim

    maXim Active Member Licensed User

    Hi jmon,

    I know the method to retrieve the separator and how to get the other properties of the system... the attached example is used in my courses for newcomers to the art of programming where (for first steps only) I prefer to keep a lower profile... when learners are more mature within in the details of the various languages explaining how to optimize the processes... ... I do not pretend that this is the best way to start learning about the differences between the various languages but is a method... ;)

    Best regards,

    maXim
     
    jmon likes this.
  9. aberezhnykh

    aberezhnykh Member Licensed User

    Hello, Maxim!
    Thanks a lot for the library! Please tell me how to disable the logs? Question is that I upload an INI file containing several thousand lines. Besides, it would be very nice if section names should not be only in capital letters. Also it would be nice to have a possibility to set a default value. Nevertheless, thank you again!
     
  10. tchart

    tchart Active Member Licensed User

    @maXim I was also curious if you can recompile the library without the logs. Im running a Jetty server app and the read of the INI file appears in my stdout log.
     
  11. TomDuncan

    TomDuncan Active Member Licensed User

    Also need to not have the logs.
    Also the section have to be upper case - the one I am using is not.
    Here is a part of it.

    Code:
    [General]
    Date=
    19/07/2016
    Timestamp=
    19/07/2016 11:14:00 AM
    CurrentYear=
    2016
    CurrentMonth=
    7
    CurrentDay=
    19

    [Wind]
    Speed=
    43.9199981689453
    SpTime=
    01:34
    Gust=
    73.4400024414063
    Time=
    01:34
    Bearing=
    360
    Direction=N
    Windrun=
    172.926132202148
    DominantWindBearing=
    299
    DominantWindBearingMinutes=
    674
    DominantWindBearingX=-
    8342.9453125
    DominantWindBearingY=
    4722.87060546875

    [Temp]
    Low=
    8.69999980926514
    LTime=
    00:29
    High=
    12.6999998092651
    HTime=
    09:24
    Total=
    7270.99609375
    Samples=
    675
    ChillHours=
    387.601684570313
    HeatingDegreeDays=
    3.52285623550415
    CoolingDegreeDays=
    0
    It will not read the keys for these, only if they are all in caps.

    Tom
     
  12. maXim

    maXim Active Member Licensed User

    Hi All,

    I apologize but I have read posts only now... :(
    I recommend using the
    fINI class in db2000 eXtrafunctions library! ;)
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice