R: Read Write CSV

This article shows how to read and write CSV file with R programming language. We will be manually creating a new CSV file with the following data: rollno,name,gender,age,marks,address 7,Ram,M,22,77,Kathmandu 9,Sita,F,23,88,Bhaktapur 14,Hari,M,24,74,Lalitpur 22,Radha,F,25,65,Bhaktapur 3,John,M,23,90,Kathmandu 11,Jia,F,21,55,Kathmandu We name the CSV file as students.csv. The CSV file contains data of students. It contains roll no, name, gender, age, … Read more

Python: Read Write CSV

In this article, I will be showing how to read data from a CSV file and write data to a new CSV file using Python programming language. Here’s a scenario: Suppose, I have a CSV file with 3 columns (user_id, item_id, and star_rating). It has data of 100 users. Each user has rated 20 different … Read more

PHP: Read Write CSV

In this article, I will be showing you how to read and write CSV file with PHP. I have used PHP function fgetcsv to read CSV fields and fputcsv to write on CSV file. fgetcsv — Gets line from file pointer and parse for CSV fields. fgetcsv() parses the line it reads for fields in … Read more