Text file Input/Output in Java

Offered By
In this Guided Project, you will:
1.5 hours
No download needed
Split-screen video
Desktop only

By the end of this project, you will learn to use text files for input/output in Java. You will also learn to read and write structured data to and from a text file. Finally, we will create a student scorecard and learn to do some basic statistics on data present in a text file. Text File Input/Output is necessary to store data on the hard-disk in order to keep it even after your program execution ends or the computer switches off.

Skills you will develop

  • Write structured data to a text file using PrintWriter

  • Write data to text file

  • Read structured data from a file and perform calculations

  • Read meta-data using File class and configure file-opening using FileOutputStream class

  • Read data from text file

Learn step-by-step

In a video that plays in a split-screen with your work area, your instructor will walk you through these steps:

How Guided Projects work

Your workspace is a cloud desktop right in your browser, no download required

In a split-screen video, your instructor guides you step-by-step

Frequently Asked Questions