Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/CSV-data-manipulation/BASIC/csv-data-manipulation.basic
Normal file
14
Task/CSV-data-manipulation/BASIC/csv-data-manipulation.basic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
OPEN "manip.csv" FOR INPUT AS #1
|
||||
OPEN "manip2.csv" FOR OUTPUT AS #2
|
||||
|
||||
LINE INPUT #1, header$
|
||||
PRINT #2, header$ + ",SUM"
|
||||
|
||||
WHILE NOT EOF(1)
|
||||
INPUT #1, c1, c2, c3, c4, c5
|
||||
sum = c1 + c2 + c3 + c4 + c5
|
||||
WRITE #2, c1, c2, c3, c4, c5, sum
|
||||
WEND
|
||||
|
||||
CLOSE #1, #2
|
||||
END
|
||||
Loading…
Add table
Add a link
Reference in a new issue