Re: Help
- Posted by Patrick Quist <quistnet at HOTMAIL.COM> Oct 29, 1998
- 539 views
>>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