
FastFile released
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 .
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

SPAMINATOR NR.1
- NoahPhense
- Addict
- Posts: 1999
- Joined: Thu Oct 16, 2003 8:30 pm
- Location: North Florida
Help File
I took the liberty of compiling you html.. for those that might want just a single help file.
Download Help File Here
- john
Download Help File Here
- john
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 )
This is the last version before i update to V5 (which is nearly ready for release, only the fine weather stops my work )
SPAMINATOR NR.1
-
- User
- Posts: 15
- Joined: Sun Sep 12, 2004 6:41 am
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.
So... any thoughts?
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
-
- User
- Posts: 15
- Joined: Sun Sep 12, 2004 6:41 am
FastFileText V5 Beta :
New:
-Optional FileNumber (to load more than 1 File at same time)
-Optional separator
-Searchfunction (first version, not optimized)
(here downloadable)
New:
-Optional FileNumber (to load more than 1 File at same time)
-Optional separator
-Searchfunction (first version, not optimized)
(here downloadable)
SPAMINATOR NR.1
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
You must be having very good weather where you liveRings 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 )

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"