File f=new File("c:/'.'"); // I know about file class just didn't understand what kind of file "c:/'.'" is.

File strRoot[]=f.listRoots();

Recommended Answers

All 3 Replies

That refers to the C-drive in your computer.

thanks but what does '.' mean

The dot refers to the current working directory.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.