Java- Writing a file and reading a file line by line
1.What is the default place/location ( where the .txt file written is saved) for file write in java, using class FileWriter and BufferedWriter. Is it saved in the package in which lies the class which contains the code for file write?
2.Can we save the .txt file created after file writing using java class FileWriter and BufferedWriter?
3.When we want to read a file line by line using class DataInputStream, where should the .txt file be located?
4.Can we read a .txt file located at a place of our choice (e.g Desktop)?
Friends please reply as soon as possible because I need a solution to this before I can proceed with my work.
I shall be grateful!