dimanche 2 juin 2019

JavaScript reading file and creating new file

I would like a button that a user input a text file with data (below) and it is read and from the 2nd column there are requirements and if they fit the requirement then a new file (Group name (below)) is created with the whole line in it.

Requirement
Advanced Group: 85-100
Intermediate Group: 60-84
Standard Group: 0-59

Any numbers above 100 or is in the negatives (-) then nothing is created and an error message pops up.

Bob   49
Issac 89
Ian   98
Tom   49
Steve 89
zack  100
Cola  89
Jake  39
Roman 48
Jacob 69




Aucun commentaire:

Enregistrer un commentaire