Page 3 of 4

Posted: Fri Aug 01, 2003 4:57 pm
by newbie
thx Paul :wink:

Posted: Thu Oct 30, 2003 8:39 pm
by Rings
Okay, next Beta of FastFile Libraries Version 4 available( download here)

from the history:

Optional Filepointer in all read/writing commands
Filepointer in Open/close commands
FastUseFile() Added
FastOpenFileRead() Added
FastReadString() Added
FastWriteString() Added
FastReadFloat() Added
FastWriteFloat() Added , whole Lib splitted
FastFileCRC32() and FastFileMD5() readonly

The FastFileText is not changed (execept that it is readonly), this work is for later :)

feel free to test (plz with backupfiles ) and report errors,critics and others (donations ;)) here or in the IRC-channel .

Help File

Posted: Fri Oct 31, 2003 5:45 am
by NoahPhense
I took the liberty of compiling you html.. for those that might want just a single help file.

Download Help File Here

- john

Posted: Tue Sep 07, 2004 1:20 pm
by Rings
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 )

Posted: Tue Sep 07, 2004 2:27 pm
by Fred
:lol:

Posted: Sun Sep 12, 2004 6:12 am
by Shannara
Sweet *fingers crossed for bad weather*

Posted: Mon Sep 13, 2004 12:54 pm
by Yian_The_Craft
I have a test.txt which is 4 lines:
1
2
3
4
but when I use that example code it only reads the 3 lines.If I make it 5 lines it only reads 4.

Posted: Mon Sep 13, 2004 7:07 pm
by Rings
Yian_The_Craft wrote:I have a test.txt which is 4 lines:
1
2
3
4
but when I use that example code it only reads the 3 lines.If I make it 5 lines it only reads 4.
known bug (a missing CRLF at the last line) , should been for the next version.

Posted: Sat Sep 18, 2004 11:38 pm
by Xombie
I'm getting a bug with 4.2 and dunno if it's already been found or if I'm doing something horribly wrong. Thought I'd mention it here. I've got a text file that is 3,560,918 bytes and it's filled with lines like (around 65537 lines):

69253293=57722345,12281923,41896350,85190632,78327595
8405792=74415561,56360749,40048898,41356995,88183293
74830558=32040838,94203399,92711169,37519720,2299895
73791813=30531672,72681100,22220704,50667884,30419886
83235894=80847585,25262185,21055261,4850284,55773614
56457653=91742162,20903141,10880654,80039553,89579687

... now whenever I cycle through it with FastOpenTextFile and try to read the last line, my program crashes. In fact, if I tell it to read past a certain point, it'll crash. Seems to happen just after 32767 or around there. Now take a look at the sample code I'm using to see if I'm making a really obvious mistake.

Code: Select all

Procedure.s TestRead(inFile.s)
      sLine.s
      iLoop.l
      countLines.l
      If FileSize(inFile) > -1
         countLines = FastOpenTextFile(inFile) 
         For iLoop = 1 To countLines+1
            sLine=FastReadLine(iLoop)
         Next
         FastCloseTextFile()
      EndIf
   ProcedureReturn sLine 
EndProcedure

If OpenWindow(0, 0, 0, 150, 150,  #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_TitleBar , "Test") 
   ;
   If CreateGadgetList(WindowID()) 
      ButtonGadget(5, 70, 135, 80, 15, "Test") 
   EndIf
   ;
   Repeat 
      Event = WaitWindowEvent() 
      If Event = #PB_EventGadget 
         GadgetID = EventGadgetID() 
         Select GadgetID
            Case 5
               t1=GetTickCount_()
               sTest.s=configGetValueTest("c:\test.txt")
               t2=GetTickCount_()
               MessageRequester("Result: "+StrU(t2-t1,2),sTest)
         EndSelect
      EndIf 
   Until Event = #PB_EventCloseWindow 
EndIf 

End 
So... any thoughts?

Posted: Mon Sep 27, 2004 5:19 pm
by Yian_The_Craft
I am really needing fast file for my program,will there be a new version released?

Posted: Mon Sep 27, 2004 6:42 pm
by Rings
yes, but i did not post the date here . you will have to wait , sorry

and which version do you need so fast ?
Fastfile or FastFiletext ?

Posted: Tue Sep 28, 2004 12:31 pm
by Yian_The_Craft
Both ;) Please

Posted: Sat Nov 20, 2004 6:44 pm
by Rings
FastFileText V5 Beta :

New:
-Optional FileNumber (to load more than 1 File at same time)
-Optional separator
-Searchfunction (first version, not optimized)

(here downloadable)

Posted: Thu Dec 16, 2004 10:20 am
by Psychophanta
Hi Rings and everybody,
Is it expected for PB File library to reach same speed that this lib soon?
Anyone knows? :?

Posted: Mon Jan 31, 2005 3:47 am
by Shannara
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"