Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - How to read txt into integer array in Easy Language (E Language)
How to read txt into integer array in Easy Language (E Language)

.Version 2

.Local variable a, text type

.Local variable b, text type, , "0"

.Local variable c, integer type

.Local variable d, integer type, , "0"

a = to text (read file (get running directory ()) + "\ 1.txt”))

b = Split text (a, #line break, )

. Counting loop head (get the number of array members (b), c)

d [c] = to integer (b [c])

. Counting loop tail ()