RS> I have a question that I've been "fighting" for quite some time.
RS> I am trying to extract a pathname from a *.DAT file. This pathname is
ust
RS> called out as a directory (ie C:\BBS), but in the dat file, it is
declared
RS> a "STRING * 81". How can I "strip" the spaces from the right? I have
ried
RS> RTRIM$ (among others) with no luck at all. What I need to be able to do
s
RS> to use the directory name & "tack on" a filename.
(This is late at night so... :)
From memory I just had like
DIM PATH as STRIN * 81
PATH=STRING(81," ") 'Fills 'PATH' up with SPACES..
then read in ya dir with GET.. and you should be able to use RTRIM$..
if that does not work, I'm dreaming.. I did do it but just cant remember how
:)
Or I think I might of saved spaces after the PATH in the DAT file.. Hmm.. :(
Cya!
Steven
--- GEcho 1.00
---------------
* Origin: DarkZone BBS, NODE1 V.34+ V.fc HST +61-63-726978 (3:623/683)
|