let content: ArrayBuffer = this.fileFs.getFileContentBuffer(file.uri);
saveAsFileContent(fileTestDirPathNew, content);
this.UpdateSelectedFiles();
this.textContentTarget = 'Save as ' + fileNewName;
```
#### 文本拖拽
```
.onDragStart((event) => {
this.textContentTarget = '';
this.backGroundColor = Color.Transparent;
let data: UDC.PlainText = new UDC.PlainText();
data.abstract = 'this is abstract';
data.textContent = this.textContent;
(event as DragEvent).setData(new UDC.UnifiedData(data));
})
```
#### 文本落入
```
} else if (type == UTD.UniformDataType.PLAIN_TEXT) {
logger.info(TAG, 'general.plain-text is true!');
let plainText: UDC.PlainText = records[0] as UDC.PlainText;
let name: string = randomString(6, 'UDMFDemo') + '.txt';
let fileNewName: string = time.toString() + '_' + name;
let fileTestDirPathNew = filesDir + "/" + fileNewName;