save

public void save(File file)
public void save(String file)

Saves this FileConfiguration to the specified location.

If the file does not exist, it will be created. If already exists, it will be overwritten. If it cannot be overwritten or created, an exception will be thrown.

This method will save using the system default encoding, or possibly using UTF8.

Parameters

file

File to save to.

Throws

Thrown when the given file cannot be written to for any reason.

Thrown when file is null.