The current function helps to format the file but it could be improved to detect several types of separator and decimal delimiters. To-do list!