Read CSV Data in Java with BufferedReader ๐
Learn how to read CSV files in Java using BufferedReader with an easy example and code snippet.

Azhar Techno Coder
592 views โข Mar 11, 2023

About this video
How to Read Data from CSV file in Java | Reading a CSV with BufferedReader Example in Java
Code:
package com.general.interviewQuestions;
import java.io.*;
public class readCsvBufferReader {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
BufferedReader br = new BufferedReader(new FileReader("C:/Users/AZHAR PC/eclipse-workspace/GeneralInterviewQuestions/DataFiles/ScannerCsv.csv"));
String next;
while((next = br.readLine())!=null) {
String[] youTubeDetails = next.split(",");
for(int i=0;i youTubeDetails.length;i++) {
System.out.println(youTubeDetails[i]);
}
}
}catch(Exception e) {
e.printStackTrace();
}
}
}
Chapters:
0:00 - Introduction to the video
0:42 - Reading a CSV with BufferedReader Example in Java
3:28 - Execution of the program
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
โบ 1. Javascript - https://youtube.com/playlist?list=PLO2l2fYgN805CokP5kaOWOhqP3-2vyXdS
โบ 2. Puppetter - https://youtube.com/playlist?list=PLO2l2fYgN805E5fbSnvtFM3K9c92ePS8e
โบ 3. Cypress - https://youtube.com/playlist?list=PLO2l2fYgN807KRpLfvvrqa1MSX8XdYxkV
โบ 4. Tech works - https://www.youtube.com/watch?v=ZNAdt4Oe5Sw&list=PLO2l2fYgN807CQ5H3ER__7x7LeEA10T2Z
โบ 5. Vbscript Basics To Advanced - https://www.youtube.com/watch?v=z_ctZDolyG0&list=PLO2l2fYgN805CuD-90ESrxRqX__-YJMym
โบ 6. Jmeter - https://youtube.com/playlist?list=PLO2l2fYgN806eNr5cr-TMTX8xGTW7Mtcn
โบ 7. Excel - https://youtube.com/playlist?list=PLO2l2fYgN806piZ2fD0bYNi3ExoPJlcqj
โบ 8. Appium - https://www.youtube.com/playlist?list=PLO2l2fYgN806V_9-wL-dpmrGg8dhPPONK
โบ 9. Shares - https://youtube.com/playlist?list=PLO2l2fYgN806ySmKp3sskJW0ByJalmPE2
โบ 10. Javascript Interview Questions -https://youtube.com/playlist?list=PLO2l2fYgN807uZl7Mp7ESavluzVU25ux9
โบ 11. C# Tutorials - https://www.youtube.com/playlist?list=PLO2l2fYgN805Dct9KbYNYC8nGOzwKjklt
โบ 12. HTML & CSS - https://www.youtube.com/playlist?list=PLO2l2fYgN804tkFuKw9DlcVXT0m8hDzdw
โบ 13. Browser Console - https://www.youtube.com/playlist?list=PLO2l2fYgN80692hfTP1BcgmWNBZV0ZYzo
โบ 14. JSON - https://www.youtube.com/playlist?list=PLO2l2fYgN8062RQNrQt5xAQZFaFINvMsY
โบ 15. Specflow - https://www.youtube.com/playlist?list=PLO2l2fYgN806s2KXmhI6eqHLwP_sriPl0
โบ 16. MongoDB - https://www.youtube.com/playlist?list=PLO2l2fYgN80626nl1UkUz3ufXSlgMXIkh
โบ 17. Postman - https://youtube.com/playlist?list=PLO2l2fYgN804Nf9Vfma54yFNwlA3bF9-Z
โบ 18. Python - https://youtube.com/playlist?list=PLO2l2fYgN80486BcimGYi9Y3XQ-beQHCN
โบ 19. Typescript - https://www.youtube.com/playlist?list=PLO2l2fYgN805MyyI2Q1YpkX78OehOqzDg
โบ 20. Node - https://www.youtube.com/playlist?list=PLO2l2fYgN807v_icJITbdYV_IP5wdgDIy
โบ 21. Java Selenium Interview Questions: https://www.youtube.com/playlist?list=PLO2l2fYgN806mr2M9Km0KNQz_wv_tZTwD
โบ 22. Real Time Interview Q & A: https://www.youtube.com/playlist?list=PLO2l2fYgN805uI-sDXvo0jV6qvXWHi6x8
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#readcsv
#java
#BufferedReader
Code:
package com.general.interviewQuestions;
import java.io.*;
public class readCsvBufferReader {
public static void main(String[] args) {
// TODO Auto-generated method stub
try {
BufferedReader br = new BufferedReader(new FileReader("C:/Users/AZHAR PC/eclipse-workspace/GeneralInterviewQuestions/DataFiles/ScannerCsv.csv"));
String next;
while((next = br.readLine())!=null) {
String[] youTubeDetails = next.split(",");
for(int i=0;i youTubeDetails.length;i++) {
System.out.println(youTubeDetails[i]);
}
}
}catch(Exception e) {
e.printStackTrace();
}
}
}
Chapters:
0:00 - Introduction to the video
0:42 - Reading a CSV with BufferedReader Example in Java
3:28 - Execution of the program
Next Steps :
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
Must Watch Playlists
โบ 1. Javascript - https://youtube.com/playlist?list=PLO2l2fYgN805CokP5kaOWOhqP3-2vyXdS
โบ 2. Puppetter - https://youtube.com/playlist?list=PLO2l2fYgN805E5fbSnvtFM3K9c92ePS8e
โบ 3. Cypress - https://youtube.com/playlist?list=PLO2l2fYgN807KRpLfvvrqa1MSX8XdYxkV
โบ 4. Tech works - https://www.youtube.com/watch?v=ZNAdt4Oe5Sw&list=PLO2l2fYgN807CQ5H3ER__7x7LeEA10T2Z
โบ 5. Vbscript Basics To Advanced - https://www.youtube.com/watch?v=z_ctZDolyG0&list=PLO2l2fYgN805CuD-90ESrxRqX__-YJMym
โบ 6. Jmeter - https://youtube.com/playlist?list=PLO2l2fYgN806eNr5cr-TMTX8xGTW7Mtcn
โบ 7. Excel - https://youtube.com/playlist?list=PLO2l2fYgN806piZ2fD0bYNi3ExoPJlcqj
โบ 8. Appium - https://www.youtube.com/playlist?list=PLO2l2fYgN806V_9-wL-dpmrGg8dhPPONK
โบ 9. Shares - https://youtube.com/playlist?list=PLO2l2fYgN806ySmKp3sskJW0ByJalmPE2
โบ 10. Javascript Interview Questions -https://youtube.com/playlist?list=PLO2l2fYgN807uZl7Mp7ESavluzVU25ux9
โบ 11. C# Tutorials - https://www.youtube.com/playlist?list=PLO2l2fYgN805Dct9KbYNYC8nGOzwKjklt
โบ 12. HTML & CSS - https://www.youtube.com/playlist?list=PLO2l2fYgN804tkFuKw9DlcVXT0m8hDzdw
โบ 13. Browser Console - https://www.youtube.com/playlist?list=PLO2l2fYgN80692hfTP1BcgmWNBZV0ZYzo
โบ 14. JSON - https://www.youtube.com/playlist?list=PLO2l2fYgN8062RQNrQt5xAQZFaFINvMsY
โบ 15. Specflow - https://www.youtube.com/playlist?list=PLO2l2fYgN806s2KXmhI6eqHLwP_sriPl0
โบ 16. MongoDB - https://www.youtube.com/playlist?list=PLO2l2fYgN80626nl1UkUz3ufXSlgMXIkh
โบ 17. Postman - https://youtube.com/playlist?list=PLO2l2fYgN804Nf9Vfma54yFNwlA3bF9-Z
โบ 18. Python - https://youtube.com/playlist?list=PLO2l2fYgN80486BcimGYi9Y3XQ-beQHCN
โบ 19. Typescript - https://www.youtube.com/playlist?list=PLO2l2fYgN805MyyI2Q1YpkX78OehOqzDg
โบ 20. Node - https://www.youtube.com/playlist?list=PLO2l2fYgN807v_icJITbdYV_IP5wdgDIy
โบ 21. Java Selenium Interview Questions: https://www.youtube.com/playlist?list=PLO2l2fYgN806mr2M9Km0KNQz_wv_tZTwD
โบ 22. Real Time Interview Q & A: https://www.youtube.com/playlist?list=PLO2l2fYgN805uI-sDXvo0jV6qvXWHi6x8
---------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------
#readcsv
#java
#BufferedReader
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
592
Likes
31
Duration
3:54
Published
Mar 11, 2023
Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now