2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.nemo.tool.sandbox.utils;
14 * Created by hj on 12/11/15.
16 public class FileUtils {
17 public static void write(String path, String content) {
19 File f = new File(path);
21 if (!f.createNewFile()) {
22 System.out.println("Can not create new file " + path);
25 BufferedWriter output = new BufferedWriter(new FileWriter(f));
26 output.write(content);
28 } catch (Exception e) {