To Robert Craig ... help !!!

new topic     » topic index » view thread      » older message » newer message

Rob,
        Amid all your woes comes another one.

        BUT U CAN SOLVE I AM SURE >>  !!

Please ...... how do I get code to recognise gets() input. ?

include get.e
include file_ln.e
constant SCREEN = 1
constant KEYBRD = 0
constant TRUE=1
sequence line,name
object exit_code
atom w
puts(SCREEN, "Enter your Directory name here: ")

line = gets(KEYBRD) --------------------  CAN I GET THIS  BESIDE  "c:\\"  below
???

print(SCREEN, line)
puts(SCREEN, line[1..$-1])
puts(SCREEN, line)
clear_screen()
                  name=line
                   printf(1,"%s",{name})
                   w=wait_key()
function look_at(sequence path_name,sequence entry)
    printf(1,"%s\\%s: %d\n\t\t",{path_name,entry[D_NAME], entry[D_SIZE]})
    return 0
end function
exit_code = walk_dir("c:\\"  , routine_id("look_at"), TRUE)
w=wait_key()  

get the  "c:\\" to accept my input of gets()  ????
like ................      "c:\\"  &  my input ...

hope you can help.

sometime ????

cheers  les.r.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu