0

What I'm doing here is to get a html file, read it, write it and send it to me.

Is there any way to write it THEN replace some parts with Java variables to implement for example the Year, Name... ?

 private static String readFile(String path) throws IOException {
        BufferedReader br= new BufferedReader(new InputStreamReader(
                new FileInputStream(path), "UTF8"));
        StringBuilder content=new StringBuilder();
        String s="";
        while((s=br.readLine())!=null)
            {
            content.append(s);
            }
        return content.toString();
    }
David
  • 11
  • 4

0 Answers0