Комментарии:
come on bro we want spring framework and spring boot
ОтветитьHey you! I'm talking to youif you learn something new then you can help me, help you in 3 easy steps smash the like button ,drop a comment down below and subscribe I'd you'd like to become a fellow bro
Ответить.
ОтветитьIf you're having trouble with the file path, run the following line of code to figure out what the current working directory is:
System.out.println("Working Directory = " + System.getProperty("user.dir"));
Then write the file path relative to the current working directory.
VSCode seems to set the current working directory to be whatever the Folder selected for the Workspace to be. The Workspace is the GUI (graphical user interface) with all the files/file directory.
So, as some people have already pointed out.
Sometimes you need to enter the complete path for the file.
You can see what that path is by right-clicking the file in the project tree and choose "Properties".
Then copy all of that and use it instead of just the file name.
import java.io.File;
public class Main
{
public static void main(String[] args){
File file = new File("song_lyrics.txt");
if(file.exists()){
System.out.println("That file exists! :O!");
System.out.println(file.getPath());
System.out.println(file.getAbsolutePath());
System.out.println(file.isFile());
file.delete();
}
else{
System.out.println("File does not exist");
}
}
}
😇❤
Ответитьbeautiful work my lord
ОтветитьThank you very much
ОтветитьWhat a useful programming video, and by a person who actually talks english!
Amazing.
😀
ОтветитьKeep your text file outside your src folder incase if file.exists() always returns false...
Ответитьyou are realy helpful bro. :)
ОтветитьThanks bro.
ОтветитьShort N Sweet
ОтветитьYo just wanna say that GOD loved the world so much he sent his only begotten
son Jesus to die a brutal death for us so that we can have eternal life
and we can all accept this amazing gift this by simply believing in him (Jesus) asking for the forgiveness of your sins
and forming a relationship with heavenly father.
thank you, you are the best : >
Ответитьthanks
ОтветитьHello , i have a question please , i did all the instructions but it shows no file for some reason , why is that ?
Edit: its ok comments already answered that , keep the great work man
Awesome video, I love the way you explain new concepts
ОтветитьThanks! Cramming and my prof didn't cover this topic :/
Ответитьsheiii bro
ОтветитьThanks a lot!
ОтветитьLike, subscribe. Thanks!
ОтветитьThank you!
Ответитьsuper helpful, thanks bro
Ответитьlove your technique
bro
Dude you are amazing!
ОтветитьThank you for this very useful video!
ОтветитьI love you bro
ОтветитьGoat
Ответитьthank you bro
Ответитьnice
Ответитьsuper
ОтветитьHey, Thank you for the awsome learning experience... You've been a great help through my Java class this term. :)
ОтветитьThank you bro, comment for the bro code
ОтветитьThank you bro.
ОтветитьI am loving with bro code for his coding content.
ОтветитьCool! Easy to follow
ОтветитьFile.delete
Ответитьgood one, nice video.
Ответитьgreat video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
Ответитьthank for this
Ответить💪
Ответитьhey thanks bro.learnt a lot about File class..I subscribed
Ответитьthanks
Ответитьhow do i make the "secret_message" file??
Ответить