What would be useful and faster?
#1

One:
pos.txt
Код:
25, 0.0, 0.0, 0.0, 40.0
26, 0.0, 0.0, 0.0, 40.0
27, 0.0, 0.0, 0.0, 40.0
--

Two:
25.txt
Код:
PosX=0.0
PosY=0.0
PosZ=0.0
Angle=40.0
26.txt
Код:
PosX=0.0
PosY=0.0
PosZ=0.0
Angle=40.0
27.txt
Код:
PosX=0.0
PosY=0.0
PosZ=0.0
Angle=40.0
--

Thanks.
Reply
#2

Probably first of course cause it just needs to open 1 file and execute 3 lines
Reply
#3

Opening many different files is wayy slower than just reading one line per entry (+ processing).
Reply
#4

Try benchmarking and find out.
Reply
#5

Depends on what your doing with this data but at first glance I would be using sqlite it integrates very nicely in dynamic system design which is what this looks like. I don't use ini anymore in fact the only time I use file functions is for importing/exporting.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)