Append the readAllBuffer to what was read already
This commit is contained in:
parent
385a883e14
commit
88247e6857
1 changed files with 1 additions and 1 deletions
|
|
@ -158,7 +158,7 @@ proc readAllFile(file: File, len: int): string =
|
||||||
else:
|
else:
|
||||||
# We read all the bytes but did not reach the EOF
|
# We read all the bytes but did not reach the EOF
|
||||||
# Try to read it as a buffer
|
# Try to read it as a buffer
|
||||||
result = readAllBuffer(file)
|
result.add(readAllBuffer(file))
|
||||||
|
|
||||||
proc readAllFile(file: File): string =
|
proc readAllFile(file: File): string =
|
||||||
var len = rawFileSize(file)
|
var len = rawFileSize(file)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue