Handling CSV files
Let's learn how to input and output data using .csv files
What are CSV
files?
A CSV
file is a Comma Separated Values file. It’s just like any other ordinary text file, however, it has the .csv
extension and uses special characters as separators between data.
Suppose we have a table of students’ names, their ages, and their scores on a particular test. The table will look something like this.
Name | Age | Marks |
---|---|---|
Andrew | 28 | 55.2 |
Mathew | 23 | 99.5 |
Dany | 29 | 71 |
Philip |