display the info of file???

PHOTO EMBED

Fri Jan 19 2024 09:23:22 GMT+0000 (Coordinated Universal Time)

Saved by @E23CSEU1151 #java

import java.io.*;
class D
{
    public static void main(String[] args)
    {
        File f = new  File("C:\\Users\\HP\\Desktop\\LC.txt");

        if(f.exists())
        {
            System.out.println(f.canRead());
            System.out.println(f.canWrite());
            System.out.println(f.length());
            System.out.println(f.getAbsolutePath());
            System.out.println(f.getName());
        }
        else
        {
            System.out.println("not found");
        }

    }

}
content_copyCOPY