Home > front end >  how do I get filename and it's path?
how do I get filename and it's path?

Time:12-31

I just wanted to know how do I get the file's name and path using the java.io.File. is there any function which does it or should i do it manually?

CodePudding user response:

You can get the name and path of the file by using the getName() and getPath() methods. (Documentation)

  • Related