Re: high file count in application
- Posted by "Greg Haberek" <g.haberek at comcast.net> Dec 01, 2003
- 646 views
Euphoria has a pre-written database library called EDS (Euphoria Database System) and it's quite easy to use. I'm sure you could create a table called "Files" then for each record, have the key be the filename and the data be the file data. So your database would look like this: table "Files" record 1: key: "my_file01.dat" data: {sequence of data here...} record 2: key: "another file.dat" data: {more file data...} You could then list the files in your application, thereby having a 'virtual' directory in one file. When the user requests a file, grab the data from the database. Simple. Quick. Moderately pain-free. HTH, ~Greg ----- Original Message ----- From: "Peter Spaulding" <oregeopeter at aol.com> To: <EUforum at topica.com> Cc: <orepeter at yahoo.com> Sent: Monday, December 01, 2003 10:07 AM Subject: high file count in application > > > Hello to Euphoria programming fans... > I've been playing with Euphoria 1.5 (more recently, the > complete edition of 2.3), attempting to build an Earth > science application. It relies on editing of EU sequences, > assembly of libraries of small files consisting of text docs > and EU sequences (scripts) - the scripts are then assembled > into hierarchy - into a "model", which can be saved and > then run, using a "viewer" application (choosing the > small file approach in order to conserve memory > for the application, flexibility and compatibility > between the DOS and Windows version.) The problem with > this is that the directories will surely have hundreds > of these files,to slow up people's scandisk and > virus scanners. Does anyone know the best, fast EU > include for archiving such files so that they can be > broken out for each session? (Or is a call to an > external zip/unzip application be more efficient?) > Peter > > > > TOPICA - Start your own email discussion group. FREE! > >