From 88247e6857beb73666b7bc763bd897b26806dd9f Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 23 Aug 2015 18:54:15 -0400 Subject: [PATCH] Append the readAllBuffer to what was read already --- lib/system/sysio.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/sysio.nim b/lib/system/sysio.nim index edf3d347a..6db92ddf9 100644 --- a/lib/system/sysio.nim +++ b/lib/system/sysio.nim @@ -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)