There are number of classes we can use For this video we need
Save To File we can use FileWriter but the problem is it don't allow new line character BufferedWriter is used to read data but i am using PrintWriter to write on text file because it has println()
Read From File FileWriter - makes it possible to read the contents of a file as a stream of characters. BufferedReader - that reads text from a character-input stream, buffering characters so as to provide for the efficient reading of characters, lines and arrays.
How do i read from text file if the content is like this : 32|Chan|2019-11-29|14:12:01.346?
ReplyDelete