Macromedia Flash Server - File.readAll() limitations?

This is Interesting: Free IT Magazines  
Home > Archive > Macromedia Flash Server > December 2005 > File.readAll() limitations?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author File.readAll() limitations?
Bill Sanders

2005-12-31, 5:45 pm

Hello All & Happy New Year,

I've been working with the FMS2 file class more and it's turning out
to be an abyss of good fun. However, somewhere in the caverns of my
mind an alarm is going off about using File.readAll(). For those who
have been spending your time in more useful pursuits and haven't paid
much attention to the readAll() method, it sucks the entire contents
of a file out and puts it in a big array.

My question is, how big an array can I grab before the system goes
"Tilt?" Is a better practice to use readln() and File.eof() to peck
away at the file for a search OR as I'm doing, to grab everything,
close the file and do the search on the SS using an array search as
I'm now doing? (This is not a how-to question, but a how-much and
best practice question.)

TIA,
Bill

bill sanders | www.sandlight.com | bloomfield, ct | 860-242-2260



=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------

To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com