JoeStrout / miniscript

source code of both C# and C++ implementations of the MiniScript scripting language
MIT License
275 stars 64 forks source link

[C++] `file.readLines()` drops the last line if it is not followed by a line separator #155

Open marcgurevitx opened 2 months ago

marcgurevitx commented 2 months ago
f = file.open("1.txt", "w")
f.write "a" + char(10) + "b"
f.close
print file.readLines("1.txt")  // prints: ["a"]