B4J Library db2000.B4J.INI

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 |
+------------+---------+
 

Attachments

  • db2000.B4J.INI.zip
    10.2 KB · Views: 748
  • db2000.B4J.INI (v.1.0.5).zip
    11.3 KB · Views: 782
Last edited:

maXim

Active Member
Licensed User
Longtime User

jmon

Well-Known Member
Licensed User
Longtime User

maXim

Active Member
Licensed User
Longtime 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
 

aberezhnykh

Member
Licensed User
Longtime 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!
 

tchart

Well-Known Member
Licensed User
Longtime 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!

@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.
 

TomDuncan

Active Member
Licensed User
Longtime 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.

B4X:
[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
 
Top