From 4ad21e22e11df69c862619a2263f7fa03807d8ed Mon Sep 17 00:00:00 2001 From: yegor256 Date: Tue, 13 Jun 2017 18:32:26 +0300 Subject: [PATCH] doc --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1d9987c2b7..8d9e1f3025 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Java version required: 1.8+. ## Input/Output -To read a file: +To read a text file in UTF-8: ```java String text = new BytesAsText( @@ -86,7 +86,7 @@ To read a binary file from classpath: ```java byte[] data = new InputAsBytes( - new ResourceAsInput("/foo/img.jpg") + new ResourceAsInput("foo/img.jpg") ).asBytes(); ```