    

 ## On this page

  

 

 # fromFile

 Last update: 30.07.2026 

public [fromFile](from-file.md)(fileName: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html))

reads data from a file (same as readFile()).

#### Parameters

fileNamethe file to load#### Throws

[ModelCenterException](./../-model-center-exception/index.md)