Question: Create a text file named input.txt containing student data, which has the following attributes separated by comma (,): Student_Id, student_name, gender, grade. The input file

Create a text file named input.txt containing student data, which has the following attributes separated by comma (,): Student_Id, student_name, gender, grade.

The input file must have at least 5 records.

Here is a sample input.txt file format:

Student_Id, student_name, gender, grade

1137156, Tom, male, A

1234568, Amy, female, A

Please write a program that reads the text file & extracts student data from it to a csv file named output.csv. The output file should contain the same attributes as the input file.

Important Instructions:

1. You can use an external package com.csvreader.CsvWrite.

2. Because com.csvreader.CsvWriter is an external package, so you must add package: com.csvreader.CsvWriter in your program before you use it. (Hint: You need to add this external jar file in java build path of your program and import package: com.csvreader.CsvWriter in your program)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!