Java Bangla Tutorials 151 : How to create a file or directory

preview_player
Показать описание
Learning outcomes:
-----------------------------------
1) How to create a folder or directory
2) How to get directory location / getAbsolutePath()
3) How to get directory name / getName()
4) How to remove directory / delete()
5) How to create a file
6) Checking a file exist or not
7) How to delete a file
Рекомендации по теме
Комментарии
Автор

I study in Austria.All the lectures are in Deutsch and go very fast here.I was in a fix for 2-3months and depressed of programming.It was so tough to understand programming fully for me as I never did it before.But your videos helped me a lot for my better understanding.Thanks a lot & stay blessed always.

nusratjahanmeem
Автор

bhai apni bosss...salute you boss from my heart ....seriously apni apnr jayga theke onk try koren ...onk valo basha roilo brother

md.sajjadrocky
Автор

Thank you so much bhaia...you lecture is amazing

farhanahaque
Автор

Thanks brother. I will always remember you :)

AkmamHasan
Автор

2017 lecture is better than so many 2022 lecture..

mehrabhasantanim
Автор

Bro, this is the best bangla tutorial series on Java i have ever watched. Would you please launch a tutorial about making a java project by using our learned thing from your tutorial.

farhanisrak
Автор

vai multithread er upor tutorial banaben na??]

tanzirratul
Автор

package File;
import java.io.File;
public class File1 {
public static void main(String[] args) {
File dir=new File("H:/Java Documents");
dir.mkdir();
String path=dir.getAbsolutePath();
System.out.println("Path of folder:"+path);
File file1=new File(path+"/File1.txt");
File file2=new File(path+"/File2.txt");
try
{
file1.createNewFile();
file2.createNewFile();
System.out.println("Files are created.");
}
catch (Exception E)
{
System.out.println(E);
}
System.out.println("Files are created as "+file1.getName()+" and "+file2.getName());
System.out.println("Path of
System.out.println("Path of
}
}

mdshamsulalammomin
Автор

How filemanager app copy paste the checked file, folder(sub folders+files).?
I Can't add this feature in my app.? How can i get this feature in my app??Advance Thanks

ABC-zvsd
Автор

Sir amar ta error dekhatechilo ami tokhon aie code String change kore File name use kore chi
package javapackage;

import java.io.File;


public class Test {

public static void main(String[] args) {

File dir = new person");

dir.mkdir();

File b = dir.getAbsoluteFile();

System.out.println(" " + b );


}

}

alfatihanews
Автор

package Create_File ;

import java.io.File ;

public class CFile
{
public static void main(String args[])
{
File directory = new File("E:/Programming/JAVA OOP/2nd semester [ notepad ++ ]/PRACTICE/File a File") ;
directory.mkdir() ; // directory will be created
directory.getAbsolutePath() ;
}
}


Why my code is not working ??
Error showing: Could not find or load main class CFile

mdanik