RosettaCodeData/Task/Reverse-words-in-a-string/BASIC256/reverse-words-in-a-string.basic

17 lines
277 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
source = freefile
open (source, "m:\text.txt")
textEnt$ = ""
dim textSal$(size(source)*8)
linea = 0
while not eof(source)
textEnt$ = readline(source)
linea += 1
textSal$[linea] = textEnt$
end while
for n = size(source) to 1 step -1
print textSal$[n];
next n
close source