Use a CSV file to display the outputs

I found this project to monitor polyscope inputs and outputs. I would like to implement this code so that it displays on the toolbar the integer and float outputs with their values present in a .csv file. How can I do this?