FastFile released

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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)
SPAMINATOR NR.1
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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!
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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).
SPAMINATOR NR.1
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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
User avatar
oakvalley
User
User
Posts: 77
Joined: Sun Aug 08, 2004 6:34 pm
Location: Norway
Contact:

FastOpenFileRead cannot read more than 20 files in sequence

Post 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
Regards Stone Oakvalley
Currently @ PB 5.70
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Hopefully some bug fixes are applied to this soon, I can't wait to be able to use it.
Bonne_den_kule
Addict
Addict
Posts: 841
Joined: Mon Jun 07, 2004 7:10 pm

Post by Bonne_den_kule »

Time to fix the library?
abc123
Enthusiast
Enthusiast
Posts: 195
Joined: Wed Apr 18, 2007 9:27 pm

Post by abc123 »

Can't download, link missing! Can you/someone please provide a download link?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

This library became obsolete when v4.00 came out.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

here is a includefile with filemapping functions, but only german description:
http://www.purebasic.fr/german/viewtopi ... 894#152894
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply