1. Learn
  2. /
  3. Courses
  4. /
  5. Importing Data in Java

Connected

Exercise

Writing files with BufferedWriter

Now the analysis team has said they need to create summary files from their market data. Your task is to write a program that outputs a simple summary to a new file. This will be your first step in implementing file output operations for the data pipeline.

The BufferedWriter and FileWriter classes have been imported for you.

Instructions

100 XP
  • Create a writer using chained constructors.
  • Write the title line to the file.
  • Write two data lines to the file.