Skip to main content

ModelCenter APIs 2025 R2

toFileAbsolute

Last update: 16.07.2025

public toFileAbsolute(fileName: String)

writes out contents to a file without validating the variable (same as writeFile()).

Parameters

fileName the file to write to

Throws

ModelCenterException

public toFileAbsolute(fileName: String, encoding: String)

writes out contents to a file without validating the variable. Will throw an exception if binary encoding is used on a text file and vice-vera. (same as writeFile()).

Parameters

fileName the file to write to
encoding how to encode the file on disk

Throws

ModelCenterException

Connect with Ansys