Hello,
Sounds like you should open the csv file, read data into a memory container be it a DataTable or a List(Of T) where T is a class with properties representing data in the csv file. Once data is read in, close the csv file and delete it, continue as you were.
If you do not need to re-create the file again in the same session consider creating the file using DeleteOnClose when (if done this way) creating a file stream i.e.
private string TempFileName = IO.Path.Combine(Application.StartupPath, "MexcoCustomers.xml");
private System.IO.FileStream MexicoCreator = new System.IO.FileStream(TempFileName, System.IO.FileMode.Create, System.Security.AccessControl.FileSystemRights.Modify, System.IO.FileShare.None, 8, System.IO.FileOptions.DeleteOnClose);
When the app closes the file is deleted as per options set in the constructor for creating the stream.
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.