FastFile released
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
I released finaly first version of FastFile on the Resourcesite
This new Library extends Purebasic' Commandsets for Files, especially for dealing with very Big binary files.
You can easily crypt or check very big files (tested here with more than 100MB-Files) very fast.
Following Commands are implemented:
FastOpenFile
FastCloseFile
FastReadData
FastReadLong
FastReadWord
FastReadbyte
FastWriteData
FastWriteLong
FastWriteWord
FastWritebyte
FastFileCRC32
FastFileMD5
Feel free to use it in your own Programms
Download at:
http://www.reelmediaproductions.com/pb/ ... stFile.zip
written in pure Assembler and linked in EXESIZE-Friendly Object-format
I released finaly first version of FastFile on the Resourcesite
This new Library extends Purebasic' Commandsets for Files, especially for dealing with very Big binary files.
You can easily crypt or check very big files (tested here with more than 100MB-Files) very fast.
Following Commands are implemented:
FastOpenFile
FastCloseFile
FastReadData
FastReadLong
FastReadWord
FastReadbyte
FastWriteData
FastWriteLong
FastWriteWord
FastWritebyte
FastFileCRC32
FastFileMD5
Feel free to use it in your own Programms
Download at:
http://www.reelmediaproductions.com/pb/ ... stFile.zip
written in pure Assembler and linked in EXESIZE-Friendly Object-format
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Berikco.

Not for the regular PC user though
Regards,
Berikco
http://users.pandora.be/berikco/purebasic.htm
I have HD(array) here that can copy a 240 MB file to another HD(array) in 2 secondsOriginally posted by fred
> Library/Fast - 0.6s. on any run (for 135 MB right)
What HD have you ?!.
Fred - AlphaSND

Not for the regular PC user though

Regards,
Berikco
http://users.pandora.be/berikco/purebasic.htm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
Its a long way to the top if you wanna .....CodeGuru
Psst: Berikco, be quit and do not tell others about my trash i give you for playing with the kidzOriginally posted by Berikco
I have HD(array) here that can copy a 240 MB file to another HD(array) in 2 secondsOriginally posted by fred
> Library/Fast - 0.6s. on any run (for 135 MB right)
What HD have you ?!.
Fred - AlphaSND
Not for the regular PC user though
Regards,
Berikco
http://users.pandora.be/berikco/purebasic.htm
Its a long way to the top if you wanna .....CodeGuru
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
@rings
Nice lib
I want to use it to read Large preferences files into an array and process it internal.
If its possible do you have you an example
Now it takes about 5 sec (389KB) to read the following preference file into memory.
;Software Registrations
[SETTINGS]
number = 2140
;====================================
[reg0]
product = 0100000000
username = xxxxxx
refnummer = xxxxxx
orderdate = 01/22/1999
email = xxxxxx
comment =
;
;====================================
[reg1]
product = 0100000000
username = Cor de Visser
refnummer = xxxx
orderdate = 01/22/1999
email = [url]mailto:cdvisser@tref.nl">cdvisser@tref.nl
comment =
;
and so on till number 2140
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
<a href="http://www.ready4music.com[/url]
http://www.chordplanet.com
@rings
Nice lib
I want to use it to read Large preferences files into an array and process it internal.
If its possible do you have you an example
Now it takes about 5 sec (389KB) to read the following preference file into memory.
;Software Registrations
[SETTINGS]
number = 2140
;====================================
[reg0]
product = 0100000000
username = xxxxxx
refnummer = xxxxxx
orderdate = 01/22/1999
email = xxxxxx
comment =
;
;====================================
[reg1]
product = 0100000000
username = Cor de Visser
refnummer = xxxx
orderdate = 01/22/1999
email = [url]mailto:cdvisser@tref.nl">cdvisser@tref.nl
comment =
;
and so on till number 2140
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
<a href="http://www.ready4music.com[/url]
http://www.chordplanet.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
@rings
Yes, FastFileLileRead() would be very nice
Nice would also be to implent the Preference functions into FastFileLineRead()
e.g.
Result$ = FastReadPreferenceString(Keyword$, DefaultValue)
This will read the data from memory just loaded e.g. into an array.
This will make access to a large database very fast.
What do you think?
So you can build a very fast database
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com
@rings
Yes, FastFileLileRead() would be very nice
Nice would also be to implent the Preference functions into FastFileLineRead()
e.g.
Result$ = FastReadPreferenceString(Keyword$, DefaultValue)
This will read the data from memory just loaded e.g. into an array.
This will make access to a large database very fast.
What do you think?
So you can build a very fast database
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
@Cor you inspired me to do a lot more.
I have done first Tests with new Commands
The Holybiblefile(~4 MB) has about 32kb lines
My Scanning took under 0.4 secs(nothing optimzed)
LineCount=FastFileReadTextfile(Filename.s)
Then you can get everyline you like with
Content.s=FastFileReadLine(Linenumber)
so you do not have to copy to an array
More suggestion is welcome
Its a long way to the top if you wanna .....CodeGuru
@Cor you inspired me to do a lot more.
I have done first Tests with new Commands
The Holybiblefile(~4 MB) has about 32kb lines
My Scanning took under 0.4 secs(nothing optimzed)
LineCount=FastFileReadTextfile(Filename.s)
Then you can get everyline you like with
Content.s=FastFileReadLine(Linenumber)
so you do not have to copy to an array

More suggestion is welcome
Its a long way to the top if you wanna .....CodeGuru
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
@Rings,
Wow, your fast
If you have things wanted to test please mail me at [url]mailto:cdvisser@tref.nl">cdvisser@tref.nl
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
<a href="http://www.ready4music.com[/url]
http://www.chordplanet.com
@Rings,
Wow, your fast
If you have things wanted to test please mail me at [url]mailto:cdvisser@tref.nl">cdvisser@tref.nl
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
<a href="http://www.ready4music.com[/url]
http://www.chordplanet.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
Okay folks, first Beta of FastFileText
is downloadable at:
http://www.terrorkommando.de/fastfiletext.zip
Its a long way to the top if you wanna .....CodeGuru
Okay folks, first Beta of FastFileText
is downloadable at:
http://www.terrorkommando.de/fastfiletext.zip
Its a long way to the top if you wanna .....CodeGuru
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by cor.
@Rings,
Thanks for the beta.
problem:
If line only contains '0D0A' PB crashes
Kernel32.dll error
if you use fastreadline(x)
win98 se
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com
@Rings,
Thanks for the beta.
problem:
If line only contains '0D0A' PB crashes
Kernel32.dll error
if you use fastreadline(x)
win98 se
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Rings.
yes, i did not check for those (NULL) Lines
i hope at weekend i can fix it
Its a long way to the top if you wanna .....CodeGuru
thx for your comment COR on this 'BETA'Originally posted by cor
@Rings,
Thanks for the beta.
problem:
If line only contains '0D0A' PB crashes
Kernel32.dll error
if you use fastreadline(x)
win98 se
Using Windows 98 SE
Registered Purebasic
--------------------------
C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com
yes, i did not check for those (NULL) Lines
i hope at weekend i can fix it
Its a long way to the top if you wanna .....CodeGuru