Re: Help

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

>>Also say I want someone to type in a filename and they type in
>>c:\windows\temp.dat is there a function or do I have to make my own
>>that converts that to c:\\windows\\temp.dat??

Why the "\\", that's too dificult.
Why not "/" ? That's the same and easier.
You only have to replace the "\" in "/".
But you have to read the c:\....... sequence out of a file.
You probably don't understand me, but let me give you this example:

---- file.txt ------
c:\windows\temp.dat
---- end -----------
( only write the c:\..... in the file "file.txt" )

---- CONV.EX -------

sequence line
integer handler

handler=open("file.txt","r")
 line=gets(handler)
 line=line[1..length(line)]
close(handler)

for a=1 to length(line) do
 if line[a]='\\' then
  line[a]='/'
 end if
end for

--------------------------------

That's it, I think..........

PQ
(quistnet at yahoo.com)


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu