```
import picker from '@ohos.file.picker';
let documentSelectOptions = new picker.DocumentSelectOptions();
let documentPicker = new picker.DocumentViewPicker();
let that = this;
documentPicker.select(documentSelectOptions).then(async (documentSelectResult: Array<string>) => {
console.info('DocumentViewPicker.select successfully, documentSelectResult uri: ' + JSON.stringify(documentSelectResult));
}
```
let file = fs.openSync(this.fileSelect, fs.OpenMode.READ_ONLY);
console.info(`openReadSync: get fd success. file ${JSON.stringify(file)}`)
console.info(`openReadSync: get fd success. fd ${JSON.stringify(file.fd)}`)
let sta = fs.statSync(file.fd);
console.info(`fstate: ${JSON.stringify(sta)},${sta.size},${sta.ctime}`);
let buffer = new ArrayBuffer(sta.size);
let readOut = fs.readSync(file.fd, buffer, {offset:0});
console.info(`read: ${readOut},${buffer.byteLength}`);
let uint8b = new Uint8Array(buffer);
console.info(`buf: ${uint8b[0]},${uint8b[1]},${uint8b[2]},${uint8b[3]}`);
} catch (error) {
let err: BusinessError = error as BusinessError;
console.error('fs failed with err: ' + JSON.stringify(err));
}
```