Convert windows csv file to .txt

I have a pythonfile that checks a vulnerability with a textfile. Can I just convert the Windows csv file to text or do I have to use an option in my Python script to read a Windows csv file.

CSV files are text files. Being a CSV file on windows I would not expect to be special.

It you have foo.csv then you can open with notepad, for example.

Use the python csv module to process the csv file.

See csv — CSV File Reading and Writing — Python 3.11.2 documentation

Also, if you can install packages for your script, assuming you want a text file in some “standard” format (TSV, etc.) you can do it in ≈one line with Pandas:

import pandas as pd