From a715c014e255e68524db7c921d6526b2458e3125 Mon Sep 17 00:00:00 2001 From: Jo Yuan Hsieh Date: Tue, 3 Feb 2015 00:07:11 +0800 Subject: [PATCH] Problem mis-translated The problem is asking for the number of "\n"s at given file path, not the number of lines in it. --- exercises/my_first_io/problem.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/my_first_io/problem.md b/exercises/my_first_io/problem.md index aa8bc14c..a6a5adce 100644 --- a/exercises/my_first_io/problem.md +++ b/exercises/my_first_io/problem.md @@ -1,5 +1,5 @@ -撰寫一個程式,使用 **同步(Synchronous)** 操作方式的檔案系統 API。這個程式要開啟指定檔案,然後讀取並計算該檔案內容的行數,最後利用 console (標準輸出 stdout)方法將計算結果輸出到終端機命令列,輸出的結果就像是使用下列終端機命令一樣: +撰寫一個程式,使用 **同步(Synchronous)** 操作方式的檔案系統 API。這個程式要開啟指定檔案,然後讀取並計算該檔案內容中換行符號的數目,最後利用 console (標準輸出 stdout)方法將計算結果輸出到終端機命令列,輸出的結果就像是使用下列終端機命令一樣: ``` cat 檔案路徑 | wc -l