I am trying to save each index of list as new line in text file in format below in java and read same as two separate Array List for later . I have done the saving part now i want to read it back into two separate lists Save Formate Class SaveLists Class Main : Answer As both the save
Tag: printwriter
how to convert PrintWriter to String or write to a File?
I am generating dynamic page using JSP, I want to save this dynamically generated complete page in file as archive. In JSP, everything is written to PrintWriter out = response.getWriter(); At the end of page, before sending response to client I want to save this page, either in file or in buffer as string for later treatment. How can I