Welcome back.
In this lesson, we're going to update our text to be a CSV file, so there's a few updates that we
need to do and one of them is the file name.
So changing that to CSFI so it generates a CSV file with the extension.
Next we need to update the type.
So currently we're just doing a plain text.
But in this case we want to do a CSFI and we need to also specify the character set for the CSFI.
And the character set is UTF eight.
So now when we refresh, we download and we're downloading a CSV.
Now that we've downloaded the CSFI, let's open that up and make sure that you're opening it as a comma
separated because that's the structure that we created.
You could also do a semicolon separated.
So this is another option that you have.
But then of course it wouldn't be CSV file, so make sure you do have comma separated, checked off.
I'm using OpenOffice in order to open it and there's a quick preview on what it's going to look like.
And we see the structure is exactly what we were looking for when we were coming out of our CSV file
structure.
So there's a few other fixes that we still need to apply.
And one of the things that could go wrong is potentially if we already have a comma in there, we save
it, we refresh, we download the file, and this time when we open the file, you're going to see that
because it's comma separated out.
There's a problem there that this wasn't supposed to be within a new column, but it did add it into
a column.
So we need to take care that we need to fix that with our JavaScript, doing a quick cleaning of that
content and updating it, either removing the comma so we don't throw any of these errors.
So it's going to be a quick fix that we're going to do in the upcoming lesson.
So go ahead and update your code in order to download the file as a CSFI.