mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-18 13:30:33 +00:00
Append the readAllBuffer to what was read already
This commit is contained in:
@@ -158,7 +158,7 @@ proc readAllFile(file: File, len: int): string =
|
||||
else:
|
||||
# We read all the bytes but did not reach the EOF
|
||||
# Try to read it as a buffer
|
||||
result = readAllBuffer(file)
|
||||
result.add(readAllBuffer(file))
|
||||
|
||||
proc readAllFile(file: File): string =
|
||||
var len = rawFileSize(file)
|
||||
|
||||
Reference in New Issue
Block a user