@Override
  @SuppressWarnings("java:S2259")
  public void writeWithOutSync(Modification mod) throws IOException {
    if (fos == null) {
      fos = new FileOutputStream(filePath, true);
    }
    fos.write(encodeModification(mod).getBytes());
    fos.write(System.lineSeparator().getBytes());
  }
Construct a LocalTextModificationAccessor using a file specified by filePath.

@param filePath the path of the file that is used for storing modifications.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/modification/v1/io/LocalTextModificationAccessor.java