Re: standard read_file()

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> 
> Kat wrote:
> > 
> > I thought it was in the code i posted here a minute ago. Didn't you see it?
> > 
> 
> Yes, but you said it was in file.e already. I was looking in existing file.e's
> for it, as being distributed with Euphoria already.
> 
> I thought that's what you meant that file.e has a read_file like function
> already?

A file.e i got from the archives had a read_file like function in it. And it
seemed right to have a file function in file.e. The function itself has gone thru
many iterations here as i made efforts to speed it up. I never checked the
standard distribution, since i move all include and runtime files in one
directory for each application, and often just copy over directories full of
files known to run well together, rather than build a new application dir with
hunt-and-find files from the archive. This saves trouble with different include
files, different Eu versions, and mostly different win32lib versions. But all my
file.e have this same getf() in it, i've been using it for many years. Eight
years, perhaps more.

I still should get it to use Jordah's or Hayden's memory routines, since the
sequence allocated for the file to be read into isn't freed by Eu when done with
it. This computer has more memory than the old computer.

Quite a while ago, Euman , Tommy Carlier , and Derek did some memory store
routines for reading/writing files thru. I have them, but a quick search in the
Eu archives online does not turn them up. They use kernal32 calls, and last i
used them was on an older win95b box, and i didn't get the same performance Derek
did on his newer equipment. I should try them again, on the new computer.

Jeffrey Fielding made a file include as well, using win32 calls. Perhaps
win32fil.zip would be a good thing to look at, altho he did not include file
reading or writing in it. I don't expect it to be *nix compatable for kernal32
calls, but the rest of it may be useful.

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu