Page 4 of 4
Posted: Mon Jan 31, 2005 4:53 pm
by Rings
Shannara wrote:Rings wrote:a small (bugfixed) update is here
FastFile V4.2
This is the last version before i update to V5 (which is nearly ready for release, only the fine weather stops my work )
You must be having very good weather where you live
Anyways, this will not work with Strings in a binary file as it requires the length of the string, which you cannot get unless you read it first... lol. I just found that funny
Also it does not work on Pentium 4s. It locks up the program on "FastOpenFile"
well, my FastFileText (i guess you meant that) can handle predefinied Seperators, just as CRLF,CR and theroreticly also Chr(0) ( i did not use PB-Strings for this) but i never tested it.FastfileText is fast while it scanns through the hole Text and build a predefined JumpTable .
For the P4 bug, i should test it with my notebook.
Normaly i don't use any cpu-specific commands in my libs.
And there is a life outside from PB, i have a familiy, a dayjob where i code whole day. So only spare time for this shit

I live in good old europe if you know where that is (only a few miles from NY)
Posted: Mon Jan 31, 2005 10:04 pm
by Shannara
Nope, I mean FastFile_V4_2.
I thought FastOpenFile was for binary files only, and not text files, but I guess I was wrong

Does the Chr(0), work for the FastReadString command as well? If that is the same used for PB's WriteStringN(), then sweet!
Posted: Tue Feb 01, 2005 9:33 am
by Rings
yes, for the 'normal' fastFile commands, the Read/String commands work for sure only with the same limitations as Purebasic's one .
I would prefer 'normal' data commands for working with Strings&Chr(0) .
and of course,
that problem with the Chr(0) is sometimes annoying .
I also came from VB , there you can handle Chr(0) inside a string.
we have to wait what Fred codes for next version, or do our own Stringhandling (which i would prefer).
Posted: Tue Feb 01, 2005 8:08 pm
by Shannara
Cool beans then, that would ben the len.l section of the FastReadString is not needed as it automatically detects that char?
Anyways, thats all I have to say for now until FastFile is fixed to work on all comps

and I can use it
Specs:
http://h10025.www1.hp.com/ewfrf/wc/manu ... g=en&cc=us
FastOpenFileRead cannot read more than 20 files in sequence
Posted: Thu Mar 31, 2005 1:28 am
by oakvalley
A quick code like this, will suddenly make the FastOpenFileRead stop at 20 each time. Why can the file command read beyond 20?
This also applies to fastopenfile()
The file is closed afterwards so there should be no problem that I can see.
It does work with fastopentextfile() command
Quick Example code, will not let us read past 20 instances in a loop, no error code or explanation given:
Dim abba$(40)
abba$(0)="data/aburner2.png"
abba$(1)="data/actfancr.png"
abba$(2)="data/aerofgt.png"
abba$(3)="data/agallet.png"
abba$(4)="data/airbustr.png"
abba$(5)="data/airduel.png"
abba$(6)="data/airwolf.png"
abba$(7)="data/ajax.png"
abba$(8)="data/aliens.png"
abba$(9)="data/aliensyn.png"
abba$(10)="data/aodk.png"
abba$(11)="data/avsp.png"
abba$(12)="data/hatena.png"
abba$(13)="data/koshien.png"
abba$(14)="data/mjlaman.png"
abba$(15)="data/mjlstory.png"
abba$(16)="data/mjnanpas.png"
abba$(17)="data/mjnatsu.png"
abba$(18)="data/mjnquest.png"
abba$(19)="data/mjsikaku.png"
abba$(20)="data/mjsister.png"
abba$(21)="data/mjuraden.png"
abba$(22)="data/mjyougo.png"
For a=0 To 22
Debug a
Fast_Open=FastOpenFileRead(1,abba$(a))
Delay(100)
FastCloseFile(1)
Delay(100)
Next a
Posted: Thu Mar 31, 2005 2:01 am
by Shannara
Hopefully some bug fixes are applied to this soon, I can't wait to be able to use it.
Posted: Thu Mar 31, 2005 6:56 am
by Bonne_den_kule
Time to fix the library?
Posted: Wed Jun 06, 2007 10:09 pm
by abc123
Can't download, link missing! Can you/someone please provide a download link?
Posted: Wed Jun 06, 2007 10:19 pm
by PB
This library became obsolete when v4.00 came out.
Posted: Wed Jun 06, 2007 10:34 pm
by ts-soft
here is a includefile with filemapping functions, but only german description:
http://www.purebasic.fr/german/viewtopi ... 894#152894