First time here? Checkout the FAQ!
x
menu search
brightness_auto
more_vert
What is absolute filename and relative filename?
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Best answer
The file name can be specified with its complete path and drive letter. Such a specification of file name is called absolute filename. For example – c:\test\myprogram.html where test is a current directory in which myprogram.html lies. The file name is a file name relative to the current directory. That means while specifying the relative file name we should not mention the complete path of the corresponding file. For example – new File(“myprogram.html”);
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
...