Skip to content

format

typescript
FileStream.ReadAllString()

class: FileStream

description

Reads and returns all characters from a file stream.

parameter

param_nametypedescription

reture

typedescription
stringThe characters from the file stream.

code example

javascript
function Test(path: string) { 
    try {
        let fileRead = new FileStream(path, FileMode.Open, FileAccess.Read);  
        let strr: string;  
        strr = fileRead.ReadAllString();  
        fileRead.Close();  
    } catch (error) {
        Debug.Error(error);
    }
}