Subj : Re: Varrible assignments
To   : Digital Man
From : Finnigann
Date : Sun Sep 09 2007 04:28 am

-=> With regards to the social ramifications;
    Digital Man wrote to Finnigann <=-

DM>   Re: Re: Varrible assignments
DM>   By: Finnigann to Digital Man on Sat Sep 08 2007 11:18 pm

>  DM> If the filename portion is fixed-length (e.g. always "Contest", 7
>  DM> chars), then the following would work:
>
>  DM> str extension
>  DM> copy extension filename
>  DM> shift_str extension 7     # filename portion is always 7 chars
>
>
>  Would the dot count as a space?

DM> It's a character, yeah.

>  contest.845
>  12345678

DM> Yeah, I usually think of the dot as part of the extension. Shift 8
DM> chars if you don't want the dot in your string.


Good point! (pun intended)


>  DM> str extension           # defining varrible 'extention' as a string
>  DM> copy extension filename # I'm gonna have to hard code the filename
>                              # right?
>  DM> shift_str extension 7   # filename portion is always 7 chars
>
>
>  The filename (CONTEST) stays the same, will wild cards work in BAJA for
>  the extention?

DM> In strings, any/all characters are valid.

>    copy extention contest.???  # Making sure that there are never more
>                                # than one file name in the work dir.

DM> I'm not really sure what you're trying to do there. If you want to find
DM> if a file exists on disk, using wildcards, use the CHKFILE function or
DM> the OPEN_DIR/READ_DIR/CLOSE_DIR functions.


My original thoughts were to code the CONTEST file for different weeks.
The extention is code for sport and a week of play. As people submit
their picks, the extention would be used to keep it all straight.

Reading in files (with the picks) and writing out files with results.

Although, in retrospect, all would be handled NOW and the week info
wouldn't matter.

The algorithm is a bit fuzzy in my head just now.



  _   _   _   _   _   _   _   _   _
 / \ / \ / \ / \ / \ / \ / \ / \ / \
( F | i | n | n | i | g | a | n | n )
 \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/


... "42? 7 and a half million years and all you can come up with is 42?!"
--- MultiMail/Win32 v0.47
� Synchronet � Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.net