import java.io.*;
class File1
{
public static void main(String[] args) throws IOException
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter a file name");
String s=new String(br.readLine());
File f=new File(s);
if(f.exists())
System.out.println("File exists");
if(f.canRead())
System.out.println("File is readable");
if(f.canWrite())
System.out.println("File is writable");
if(f.isFile())
System.out.println("It is a file");
else if(f.isDirectory())
System.out.println("It is a directory");
System.out.println("The length of the file is "+f.length()+" bytes");
}
}
New evolution of the Mouse. In 1980's round ball mouses are invented, then technology introduced Optical mouses. Now upcoming Mouse is named as Evo mouse . No more movement of your hands on placing a physical mouse, Your finger is the pointer . You can use this mouse on any Flat Surface and also it requires very little space. This mouse contains a Power button on the top, Mini USb port . It works with the help of bluetooth and input is taken by the sensor. View this Video to know the functionality of EvoMouse
Comments
Post a Comment