Skip to content
Advertisement

Collect data from multiple files in a folder and save it as a variable

I want to collect the data from the first line in each .txt file, all the files are in the same folder. I then want to save it in the variable: (addPlayer) This will be needed to add items to a pqt5 list Folder directory: C:UsersHendreOneDriveDocumentsCourseWorkProjectPlayers

Code:

JavaScript

Advertisement

Answer

I think that will help you

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement