I cant not thank you enough for this simple, organised, precise and very helpfull explanation. This was the first of your videos that i whatched and my guess is that i will be watching all your videos and putting thumbs up everywhere. Please continue with your good work. Thank you.
I've legitimately never commented on a youtube video before, but this video is worth commenting on. Keep up the amazing work! Also, a note for those who might want to use this for a spreadsheet: use the file ext .csv instead of .txt and you can directly write to a spreadsheet.
Mate, it is 4:08am right now for me and this was the last thing I needed to do for my code. It finally compiled just now. Let's hope it runs how I want.
Line 30 is me calling the saveRecord method we created. When I call this method, it will execute the code in the saveRecord method we created a few lines underneath. The variables separated by commas inside the method call are parameters as we want to use those values when reading a record.
Hey man, thanks for the tutorial! Just a heads up about something, at 51 seconds one of your buds on discord pops up bottom right and the name might be a little off putting to some! Just wanted to let you know. Thanks for the instructional videos though!
DUDE, ITS 3:20 AM. I was searching for such tutorial probs for over 3 hours, cuz website aren't helpful and some guys examples just didnt work for me. I hope u get as much luck as u wish )
@@maxodidily oh and for context i'm basically trying to search a menu csv file for an item and if the item is found it would be written into an order csv file
@@maxodidily well I was trying to search an existing csv file with its unique code and if it exists to write it into another csv file along with some other user inputs so thats what i was passing into the saveOrder. But I managef to solve the problem by using a buffered reader rather than a scanner when searching the csv file. I was told it was better practice?
I'm glad you fixed the issue. Both Scanner and BufferedReader have their uses. For reading line by line, BufferedReader is more effective. This tutorial was aimed at A-Level students with the goal of helping them remember what is needed for the practical exam, most were more aware of Scanner from getting console input and that's why I went with it.
A CSV file limits you to only having commas to separate files, it can be a pain if your data has commas. a txt file can store any text you want and you can use any delimiter (a form of separating values). We interact with a txt and csv in the same way for what we are doing in this video. There is more too it but I feel the information he is sufficient. Hope this helps!
Oh thank you but I don't understand completely. I am actually building a bank website and trying to create a function that allows users to download their accounts statements in csv. Does that mean I can just insert datas into a txt file instead?
I cant not thank you enough for this simple, organised, precise and very helpfull explanation.
This was the first of your videos that i whatched and my guess is that i will be watching all your videos and putting thumbs up everywhere.
Please continue with your good work.
Thank you.
Thanks a lot for your kind words, they make producing these tutorials worth it! I hope you find my other videos just as helpful.
Hi, I am from Colombia, Very very Good, Thanks.
I've legitimately never commented on a youtube video before, but this video is worth commenting on. Keep up the amazing work!
Also, a note for those who might want to use this for a spreadsheet: use the file ext .csv instead of .txt and you can directly write to a spreadsheet.
Mate, it is 4:08am right now for me and this was the last thing I needed to do for my code. It finally compiled just now. Let's hope it runs how I want.
3:51am for me lmao
thx mate youre genius and now you have one more subscriber
Thanks you're a lifesaver
Niceee ❤️
This is very help full. Thank you very much for uploading this video//\!
Thanks a lot for the positive feedback, it made my day!
thankkk you very much for this sirrr but how abouttt like this with log in register sir?
Well done, Manny Thanks!
Thanks buddy
From INDIA
Hi... How to pass on a string with crlf characters to the CSV column?
Thank you!! it helped a lot!!
Clear message. thumbs
Good Explanation
Thank you so much for this video, your explanations where really clear, concise and understandable.
Subscribing!
thank you!
make a video on "mysql to csv" and "csv to mysql" using java
Thanks man. Short and simple!
Thanks for your kind words, it made my day!
What file do you save it at
How did you add the data without even using the data in the recordSave parameter.
Love you Mate :)
Awesome video, one question though:
If you pause at 10:11 and look at line 30: What is that? A constructor? I'm a bit confused. Cheers.
Line 30 is me calling the saveRecord method we created. When I call this method, it will execute the code in the saveRecord method we created a few lines underneath. The variables separated by commas inside the method call are parameters as we want to use those values when reading a record.
Thanks
Good job! Thank you!
Hey man, thanks for the tutorial! Just a heads up about something, at 51 seconds one of your buds on discord pops up bottom right and the name might be a little off putting to some! Just wanted to let you know. Thanks for the instructional videos though!
Thanks for the heads up! You are the first one to point that out to me.
How would you do this with user input?
Thank you so much
DUDE, ITS 3:20 AM. I was searching for such tutorial probs for over 3 hours, cuz website aren't helpful and some guys examples just didnt work for me. I hope u get as much luck as u wish )
How to avoid duplicates in the txt files when writing into the files?. For example, i wouldnt want to have name "bob" twice in the txt file
where did the file save to?
Should be saved to your Java project folder unless you specified otherwise.
@@maxodidily thanks, solved
First of all, thank you for great tutorial. I have a question. Why did u use BufferedWriter and PrintWriter class, why u didnt use only one?
So it's not necessary to close FileWriter and BufferedWriter?
You should.
thank you very much!!!
you are god
How can i add a header ??
Make the first record you add the titles for each field, in this case it would be ID, Name, Age.
can someone tell me why when i save it into my csv its saved as
a,b,c
,d
instead of
a,b,c,d
Could you send me your code via hastebin please?
@@maxodidily oh and for context i'm basically trying to search a menu csv file for an item and if the item is found it would be written into an order csv file
@@yasminzamrin Right, I've just tested your code and I am not encountering the issue. What are you passing into your saveOrder() method?
@@maxodidily well I was trying to search an existing csv file with its unique code and if it exists to write it into another csv file along with some other user inputs so thats what i was passing into the saveOrder. But I managef to solve the problem by using a buffered reader rather than a scanner when searching the csv file. I was told it was better practice?
I'm glad you fixed the issue. Both Scanner and BufferedReader have their uses. For reading line by line, BufferedReader is more effective. This tutorial was aimed at A-Level students with the goal of helping them remember what is needed for the practical exam, most were more aware of Scanner from getting console input and that's why I went with it.
where is CSV file??
no, you are writing to a text file but using the csv data format
That's a txt file. Is txt and csv the same thing?
A CSV file limits you to only having commas to separate files, it can be a pain if your data has commas. a txt file can store any text you want and you can use any delimiter (a form of separating values). We interact with a txt and csv in the same way for what we are doing in this video. There is more too it but I feel the information he is sufficient. Hope this helps!
Oh thank you but I don't understand completely. I am actually building a bank website and trying to create a function that allows users to download their accounts statements in csv. Does that mean I can just insert datas into a txt file instead?
As long as each piece of data is separated by a comma, you could use a txt file instead and your code should work in exactly the same way.
Ok I see, thank you very much Max!
Can i use .csv extension?
I see no issue with using that extension.
Hi, it is a wrong title, isn't it?
I watched the whole Video and just at the end I was shocked, because no csv file was written, but a txt.
Change the file extension to '.csv' instead of '.txt'.
Does not work, did not even get a JPanel
2020
very ez