-
Varrible assignments
From
Finnigann@VERT/BNB to
All on Sat Sep 8 10:42:00 2007
ãã How would I get the file extention into a varrible?ãã [Example]ãã Contest.845 file name,ã ^^ã which would change from week to week as part of the extention (lastã two digits are the week of the year).ãã If your reply doesn't show how to get the file name into a varrible,ã how might that be done, too.ãã advThanksance.ãã In the I'm-gonna-hate-myself-in-the-morning dept...I downloaded Jas'ã oneliner program (with .SRC) and am actually learning from it. Thanks.ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... Heisenberg may have slept here.ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
-
From
Digital Man@VERT to
Finnigann on Sat Sep 8 11:42:29 2007
Re: Varrible assignmentsã By: Finnigann to All on Sat Sep 08 2007 10:42 amãã > ã > ã > How would I get the file extention into a varrible?ã > ã > [Example]ã > ã > Contest.845 file name,ã > ^^ã > which would change from week to week as part of the extention (lastã > two digits are the week of the year).ã > ã > If your reply doesn't show how to get the file name into a varrible,ã > how might that be done, too.ã > ã > advThanksance.ã > ã > In the I'm-gonna-hate-myself-in-the-morning dept...I downloaded Jas'ã > oneliner program (with .SRC) and am actually learning from it. Thanks.ããIf the filename portion is fixed-length (e.g. always "Contest", 7 chars), thenãthe following would work:ããstr extensionãcopy extension filenameãshift_str extension 7 # filename portion is always 7 charsãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #182:ãA rainbow can only be seen in the morning or late afternoon.ãNorco, CA WX: 79.3øF, 57% humidity, 0 mph ESE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Finnigann@VERT/BNB to
Digital Man on Sat Sep 8 23:18:00 2007
With regards to the social ramifications; ã Digital Man wrote to Finnigann <=-ãã DM> Re: Varrible assignmentsã DM> By: Finnigann to All on Sat Sep 08 2007 10:42 amãã >ã >ã > How would I get the file extention into a varrible?ã >ã > [Example]ã >ã > Contest.845 file name,ã > ^^ã > which would change from week to week as part of the extention (lastã > two digits are the week of the year).ã >ã > If your reply doesn't show how to get the file name into a varrible,ã > how might that be done, too.ã >ã > advThanksance.ã >ã > In the I'm-gonna-hate-myself-in-the-morning dept...I downloaded Jas'ã > oneliner program (with .SRC) and am actually learning from it. Thanks.ãã 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?ãã contest.845ã 12345678ããã 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?ãã copy extention contest.??? # Making sure that there are never moreã # than one file name in the work dir.ãããã _ _ _ _ _ _ _ _ _ ã / \ / \ / \ / \ / \ / \ / \ / \ / \ ã ( F | i | n | n | i | g | a | n | n )ã \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ \_/ ããã... Lean left. Nah, your OTHER left! - Crow as barber ã--- MultiMail/Win32 v0.47ã þ Synchronet þ Bits-N-Bytes - bnb.dtdns.net / bnb.synchro.netã
-
From
Digital Man@VERT to
Finnigann on Sat Sep 8 23:29:52 2007
Re: Re: Varrible assignmentsã By: Finnigann to Digital Man on Sat Sep 08 2007 11:18 pmãã > -=> With regards to the social ramifications;ã > Digital Man wrote to Finnigann <=-ã > ã > DM> Re: Varrible assignmentsã > DM> By: Finnigann to All on Sat Sep 08 2007 10:42 amã > ã > >ã > >ã > > How would I get the file extention into a varrible?ã > >ã > > [Example]ã > >ã > > Contest.845 file name,ã > > ^^ã > > which would change from week to week as part of the extention (lastã > > two digits are the week of the year).ã > >ã > > If your reply doesn't show how to get the file name into a varrible,ã > > how might that be done, too.ã > >ã > > advThanksance.ã > >ã > > In the I'm-gonna-hate-myself-in-the-morning dept...I downloaded Jas'ã > > oneliner program (with .SRC) and am actually learning from it. Thanks.ã > ã > 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?ããIt's a character, yeah.ãã > contest.845ã > 12345678ããYeah, I usually think of the dot as part of the extension. Shift 8 chars if youãdon't want the dot in your string.ãã > 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?ãã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.ããI'm not really sure what you're trying to do there. If you want to find if aãfile exists on disk, using wildcards, use the CHKFILE function or theãOPEN_DIR/READ_DIR/CLOSE_DIR functions.ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #123:ãBeavers were once the size of bears. ãNorco, CA WX: 67.6øF, 58% humidity, 0 mph SSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
-
From
Finnigann@VERT/BNB to
Digital Man on Sun Sep 9 04:28:00 2007
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ã