Re: file access again

new topic     » goto parent     » topic index » view thread      » older message » newer message
fizzpopsoft said...

Hi Kat, can you do a print of the writefilename just before the open attempt?
Apologies if this is obvious, but its easy to have a typo of a slash intended to be a double slash etc.

Regards,
Alan


Yes, and i copy/paste the printed filename to attempt access in dos and Textpad. I observe the name in Eu's debugger. This is the relavant code block:

        writefilename = "D:\\ngrams\\dbpedia\\prop3\\"&linetitle[1]&"\\"&linetitle&".txt" -- open a new one 
        writefile = open(writefilename,"ab") -- and open a new file 
trace(1)                 
        junk = dir(writefilename) -- see if it actually created the file 
	if equal(writefile,-1) then  
	  puts(1,"opening failed: \n") 
	  puts(1,"writefilename= "&writefilename&"\n") 
	  trace(1) 

This is the printout, copied out of the dosbox the app puts'd it to:

Running. 
opening failed: 
writefilename= D:\ngrams\dbpedia\prop3\A\Autism.txt 
This is the debugger print (using ? writefilename) of writefilename:
writefilename={68D,58:,92\,110n,103g,114r,97a,109m,115s,92\,100d,98b,112p, 
101e,100d,105i,97a,92\,112p,114r,111o,112p,513,92\,65A,92\,65A,117u,116t, 
105i,115s,109m,46.,116t,120x,116t} 
 
* Press Enter to resume trace 
Like i said, the filename, copy/pasted from the Eu printout to dos commands, and to TextPad's file open, work fine.

useless

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

Search



Quick Links

User menu

Not signed in.

Misc Menu