Reading from a CSV File
Extend your previous code to read from a CSV file.
So far our program has all the email data hardcoded: All the data is baked right into our code. Every time you run it, it will display all the same emails. Obviously, that’s not very useful for a real-world program.
Let’s change this to read our data from an external data source instead.
One very simple and pretty popular way to store data to files is using the format CSV. This stands for “comma separated ...
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy