提交 6d9ec311 编写于 作者: R raoxian

update js-apis-fileio.md

Signed-off-by: Nraoxian <raoxian@huawei.com>
上级 20871625
......@@ -600,6 +600,14 @@ openSync(path:string, flags?:number, mode?:number): number
```js
let fd = fileio.openSync(path, 0o102, 0o640);
```
```js
let fd = fileio.openSync(path, 0o102, 0o666);
fileio.writeSync(fd, 'hello world');
let fd = fileio.openSync(path, 0o2002);
fileio.writeSync(fd, 'hello world');
let num = fileio.readSync(fd, new ArrayBuffer(4096), {position: 0});
console.info("num == " + num);
```
## fileio.read
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册