Storing configuration data for JAVA applications

programming

    Many times it is required to store some configuration settings for your application so that it can use again and again from where it left. Or the application can start with some specific parameters. The properties file can come in handy in such requirements. First, let’s write something to the properties file.   Code: import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.util.Properties; public class App {   public static void main(String[] args) {     Properties prop = new Properties();     OutputStream output = null;     try {        …

Read More