I think rather than FileWriter utilize FileReader. Then use BufferedReader to read file line by line. Then see line to decide if it interests you or not. For more information on API go to sun's official site.
I attach to file and open it with FileWriter class and write it but I want to read file and return variable IP, a line like IP = 182.15 and vary IP. So please tell me how to do this, any help will be appreciated.
I think rather than FileWriter utilize FileReader. Then use BufferedReader to read file line by line. Then see line to decide if it interests you or not. For more information on API go to sun's official site.
See the code given below which may be helpful for you:
Code:Properties p = new Properties(); d.load(new FileInputStream ("ton_fichier")); / / Mails to take the IP address d.getProperty("IP");
Bookmarks