string buffer

Read Data from a Text File using Java

Today, I will teach you how to read data from a text file using Java. We're done with creating files and writing/appending files, so now we will proceed to reading of data from any files but here we just use the text files or .txt file extension. So, now let's start this tutorial! 1. Open Notepad. Put any data in there, for example, i have write " Sourcecodester is the best!". Save it to the same