- Learning Node.js Development
- Andrew Mead
- 69字
- 2021-06-30 18:56:57
Storing the string in a file
With the basics in place, let's take it just one step further, that is, by storing the string in a file. Then, we want to read the contents of that file back by using the fs module and printing some properties from it. This means that we'll need to convert the string that we get back from fs.readfilesync into an object using JSON.parse.
推薦閱讀
- 自動(dòng)駕駛網(wǎng)絡(luò):自智時(shí)代的網(wǎng)絡(luò)架構(gòu)
- 物聯(lián)網(wǎng)工程規(guī)劃技術(shù)
- 萬物互聯(lián):蜂窩物聯(lián)網(wǎng)組網(wǎng)技術(shù)詳解
- 面向物聯(lián)網(wǎng)的嵌入式系統(tǒng)開發(fā):基于CC2530和STM32微處理器
- 中小型局域網(wǎng)組建、管理與維護(hù)實(shí)戰(zhàn)
- 網(wǎng)絡(luò)安全應(yīng)急響應(yīng)技術(shù)實(shí)戰(zhàn)
- 基于性能的保障理論與方法
- 物聯(lián)網(wǎng)與智能家居
- Microsoft Power Platform Enterprise Architecture
- 設(shè)備監(jiān)控技術(shù)詳解
- 一本書讀懂TCP/IP
- 黑客心理學(xué):社會(huì)工程學(xué)原理
- 通信系統(tǒng)實(shí)戰(zhàn)筆記:無處不在的信號(hào)處理
- 從實(shí)踐中學(xué)習(xí)Kali Linux網(wǎng)絡(luò)掃描
- OpenShift Cookbook