Breaking News

Recent Posts

How to Read Lines from File As String Array?

This snippet shows how read all the lines of a file into an array and finally print the lines. It uses the FileReader to open the file, then reads the each of the lines using the readLine() method and adds the line into the array.

Read More »

Simple File Writer

This snippet show how to write Strings to a file. It writes the String text as new line using the n character. This class can be used to build Logger or write data into the file for storage.

Read More »
Advertisment ad adsense adlogger