# parse_csv_file

**Descripción**

Lee el fichero de configuración y almacena sus datos en un array.

**Parámetros**

<table border="1" id="bkmrk-module-acepta-el-tip" style="border-collapse: collapse; width: 100%; height: 145px;"><tbody><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;">**Nombre**</td><td style="width: 6.25%; height: 29px;">**Tipo**</td><td style="width: 8.59568%; height: 29px;">**Requerido**</td><td style="width: 47.6543%; height: 29px;">**Descripción**</td></tr><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;">file</td><td style="width: 6.25%; height: 29px;">str</td><td style="width: 8.59568%; height: 29px;">Si</td><td style="width: 47.6543%; height: 29px;">Ruta del fichero csv de configuración</td></tr><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;">separator</td><td style="width: 6.25%; height: 29px;">str</td><td style="width: 8.59568%; height: 29px;">No</td><td style="width: 47.6543%; height: 29px;">Separador para la opción y el valor. Por defecto es ";"</td></tr><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;"><div><div>coun_parameters</div></div></td><td style="width: 6.25%; height: 29px;"><div><div>int</div></div></td><td style="width: 8.59568%; height: 29px;"><div><div>No</div></div></td><td style="width: 47.6543%; height: 29px;">Número mínimo de parámetros que debe tener cada línea. Por defecto Ninguno</td></tr><tr style="height: 29px;"><td style="width: 12.5%; height: 29px;">debug</td><td style="width: 6.25%; height: 29px;">bool</td><td style="width: 8.59568%; height: 29px;">No</td><td style="width: 47.6543%; height: 29px;">Para imprimir errores en las líneas</td></tr></tbody></table>

**Return**

<table border="1" id="bkmrk-module_xml-m%C3%B3dulo-en" style="border-collapse: collapse; width: 100%;"><tbody><tr><td style="width: 50%;">list</td><td style="width: 50%;">Contiene una lista de valores para cada línea csv</td></tr></tbody></table>

**Requisitos**

- sys

**Versión**

- 1.0.0

**Ejemplo**

```
import pandoraPlugintools as pt

# Specify the path to the CSV configuration file
csv_file = "data.csv"

# Specify the separator used in the CSV file
separator = ","

# Specify the minimum number of parameters each line should have
min_parameters = 3

# Parse the CSV configuration file and get the data in a list
parsed_csv_data = pt.general.parse_csv_file(file=csv_file, separator=separator, count_parameters=min_parameters, print_errors=True)

# Print the parsed CSV data
print("Parsed CSV data:", parsed_csv_data)
```