Re: file access again

new topic     » goto parent     » topic index » view thread      » older message » newer message
cargoan said...
... 
writedir="D:\\ngrams\\dbpedia\\prop3\\" & linetitle[1] 
writefilename = writedir & "\\" & linetitle & ".txt" 
if atom(dir(writedir)) then 
   if not create_directory(writedir,,1) then 
      crash("Filesystem error - could not create the folder") 
   end if 
end if 
writefile = open(writefilename,"ab") -- and open a new file  
... 


Except the goal was to append to the existing files, to merge data. The files and folders were already created by another Eu program, using the same code, and it ran fine. Writing new data to some other folders isn't appending them to the existing files.

useless

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

Search



Quick Links

User menu

Not signed in.

Misc Menu