As you can see, I used method to print some text to a file. However I could just do " c:/users/t/desktop/iFaila.txt"
But this 'iFaila.txt.' is created in eclipse package. And I dont understand how to make work?
One thing you need to get right from the beginning is code formatting and indentation. As you may noticed, your code is all over the place. Before we move any forward, do this --> Ctrl + Shift + f (win keyboard) or Cmd + Shift + f (mac keyboard)and show us (re-post code by using code tags) how did it go.
This will create iFaila.txt in the directory that Java is started in, usually the project directory. For instance, I tested this out in a project call "Play" in my workspace directory. So for me, the file would be in:
If you want it in a package, this is a little or complex. In my Play project, I have a directory src where all my source code is. In src I have the package net.snortum.play. So if I wanted to put the file in the project directory, I would usr this code:
Note, no "/" at the beginning of the path. Does this make sense?
All things are lawful, but not all things are profitable.
posted 2 years ago
I have found this file "iFaila.txt" in eclipse workplace directory.
But I dont understand, why it is invisible for package explorer?