This content has been marked as final. Show 4 replies
This should help:
var f:File = new File( "/path/to/yout/file.txt" );
Thank you for your reply. I did try that. However, the problem is the similar to using file.resolvePath("<path>"). In var f:File = new File( "/path/to/yout/file.txt" ), if "/path/to/yout/file.txt" is not an existing file on the disc, there will be the following error:
ArgumentError: Error #2004: One of the parameters is invalid.
at flash.filesystem::File/set nativePath()
When saving data to a file, the file may not exist on the disc...
Could you put down more details of your code?
new File() doesn't need to have the file exist. Nor resolvePath().
you can try this: