{"action":"created","issue":{"url":"https://api.github.com/repos/zhufengnodejs/201508ajax/issues/10","labels_url":"https://api.github.com/repos/zhufengnodejs/201508ajax/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/zhufengnodejs/201508ajax/issues/10/comments","events_url":"https://api.github.com/repos/zhufengnodejs/201508ajax/issues/10/events","html_url":"https://github.com/zhufengnodejs/201508ajax/issues/10","id":126122721,"number":10,"title":"7. 读取两个文件。先读取1.txt,在读取里面内容指定的文件，并输入结果.","user":{"login":"zhufengnodejs","id":11471150,"avatar_url":"https://avatars.githubusercontent.com/u/11471150?v=3","gravatar_id":"","url":"https://api.github.com/users/zhufengnodejs","html_url":"https://github.com/zhufengnodejs","followers_url":"https://api.github.com/users/zhufengnodejs/followers","following_url":"https://api.github.com/users/zhufengnodejs/following{/other_user}","gists_url":"https://api.github.com/users/zhufengnodejs/gists{/gist_id}","starred_url":"https://api.github.com/users/zhufengnodejs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhufengnodejs/subscriptions","organizations_url":"https://api.github.com/users/zhufengnodejs/orgs","repos_url":"https://api.github.com/users/zhufengnodejs/repos","events_url":"https://api.github.com/users/zhufengnodejs/events{/privacy}","received_events_url":"https://api.github.com/users/zhufengnodejs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2016-01-12T08:12:05Z","updated_at":"2016-01-12T08:37:28Z","closed_at":null,"body":""},"comment":{"url":"https://api.github.com/repos/zhufengnodejs/201508ajax/issues/comments/170838364","html_url":"https://github.com/zhufengnodejs/201508ajax/issues/10#issuecomment-170838364","issue_url":"https://api.github.com/repos/zhufengnodejs/201508ajax/issues/10","id":170838364,"user":{"login":"wangwensha","id":16096242,"avatar_url":"https://avatars.githubusercontent.com/u/16096242?v=3","gravatar_id":"","url":"https://api.github.com/users/wangwensha","html_url":"https://github.com/wangwensha","followers_url":"https://api.github.com/users/wangwensha/followers","following_url":"https://api.github.com/users/wangwensha/following{/other_user}","gists_url":"https://api.github.com/users/wangwensha/gists{/gist_id}","starred_url":"https://api.github.com/users/wangwensha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangwensha/subscriptions","organizations_url":"https://api.github.com/users/wangwensha/orgs","repos_url":"https://api.github.com/users/wangwensha/repos","events_url":"https://api.github.com/users/wangwensha/events{/privacy}","received_events_url":"https://api.github.com/users/wangwensha/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T08:37:28Z","updated_at":"2016-01-12T08:37:28Z","body":"```\r\nvar fs = require('fs');\r\nfs.readFile('./1','utf-8',function(err,data){\r\n    if(err){\r\n        console.log('文件读取失败',err)\r\n    }else{\r\n        fs.readFile(data.toString(),function(err,ele){\r\n            console.log(ele.toString());\r\n        });\r\n    }\r\n```\r\n\r\n"}}