Question 1
How to create a file stream that opens a file in directory other than the current working dir, say c:\mytest.txt on Windows?
file := FileStream fileNamed: 'c:\mytest.txt'.
this will produce nil.
Question 2
How to copy a file to another folder?
FileDirectory new
copyFile: (FileStream readOnlyFileNamed: 'c:\\temp\fox.txt')
toFile: (FileStream readOnlyFileNamed: 'd:\\mydb\foxout.txt').
abouve code leads to an errer.
Thanks!
jimg1968
Answer2
FileDirectory new copyFileNamed: 'C:\myfile.txt' toFileNamed: 'd:\temp\AAprova.txt'.