TIP: Click on subject to list as thread! ANSI
echo: locsysop
to: Paul Edwards
from: Bob Lawrence
date: 1996-12-13 08:14:52
subject: TIC

Hi Paul,
         after being so rudely interrupted by dying, and having solved
my problems with qsort(), I am ready to finish TIC and write your
FILES list.

  I thought I'd split the list into sections, one file for each
(FILES.10 in this case), with a number/directory-name cross-listing in
the DAT file. It means you would have to split up your f711x934x.txt
file into a separate file for each section as a template. 

  To update I check the directory first to get the first three columns
(name, size, date), then check FILES.10 line-by-line against name in
alphabetical order... and add the description if the name checks. Else
no description if a file has been added, or no line at all if the the
file has been erased from the directory.

  In the section header, I'll just read down to the solid single line
and copy the header straight across to the updated file, looking for
the "Available:" keyword to update the number of files and
"Newest:" 
to list the last file added.

  That way, you can write your own header graphics any way you like, as 
long as you end with a single solid line. Then I'll add the "Filename"
sequence for every FILES.nn to finish it off and write the enties. I
only intend to allow a single line description... wordwrapping seems
too tricky, but I suppose I could add it later.

ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ
   Û  ÛßßßßßÛ º Gnu EMX C++ compiler (see David Begley)
  ÜÛ  Û    ÜÛ º Available: 52 files (21.6 MB)
  ÛÛ  Û    ÛÛ º
  ÛÛ  ÛÜÜÜÜÛÛ º Newest: GNUEMX.TXT 19-09-96  (avail: 19-09-96)
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
Filename      Size   Date    Description
ÄÄÄÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
EMXFIX04.DOC   10K  5-05-96  [00] EMX 0.9b Bug Fixes (FIX 01 to 04)
EMXFIX04.ZIP  909K  5-05-96  [00] EMX 0.9b Bug Fixes (FIX 01 to 04)
EMXFONT.ZIP    12K  4-01-94  Use Borland (BGI) Fonts with EMX


  To make up the complete FILES.TXT list I'll just just copy each file 
on the end as I go... keeping the old one for disasters.

  If FILES.10 does not exist, but "10" exists in the DAT file with a 
directory ;liusyed against the number "10", then it would be written
(without the fancy header). You'd have to edit FILES.10 yourself, to
add the header graphics. If you remove "10" from the DAT file but
FILES.10 exists, then only the header will be written. All the entries
would be erased. The same would happen if the listed directory did not
exist. The master is the DAT file and the directory listed there.

  Does this sound alright to you?

... BTW

  Is there a clever way to look for a particular line in a file?

  What I'll do, is have a list of file names from the directory, and
run through each FILE.nn looking for it. In the worst case, I'll have
to run through the whole file for every name, and this insults my
intelligence as being too braindead even for me. Is there a clever
"shortcut" way of keeping track of where everything is? 

Regards,
Bob


Regards,
Bob
  
___ Blue Wave/QWK v2.12
@EOT:

---
* Origin: Precision Nonsense, Sydney (3:711/934.12)
SEEN-BY: 711/934 712/610
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.