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();
    }
2

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.