code: public static void exportToFile(final String fileName, final Iterable<? extends NodeInterface> nodes, final Iterable<? extends RelationshipInterface> relationships, final Iterable<String> filePaths, final boolean includeFiles) throws FrameworkException {
  
  		try (final Tx tx = StructrApp.getInstance().tx()) {
  
  			try (final FileOutputStream fos = new FileOutputStream(fileName)) {
  
  				exportToStream(fos, nodes, relationships, filePaths, includeFiles);
  			}
  
  			tx.success();
  
  		} catch (Throwable t) {
  
  			throw new FrameworkException(500, t.getMessage());
  		}
  	}
docs: Exports the given part of the structr database to a file with the given name.
  
  @param fileName
  @param nodes
  @param relationships
  @param filePaths
  @param includeFiles
  @throws FrameworkException