Menu
Hi ,
My requirement is to access a file from my javascript funtion.
Let us assume , I have the following javascript function :
function deleteFile()
{
var file = “dest.txt” ;
}
Now this file is inside a directory in my present directory.
My present directory say, /home/myuser/
The dest.txt file is under a directory my_dir in my present directory.
How can I then access it as /home/myuser/my_dir/dest.txt and delete the same.
Please help. Thanks