Switch netd over to <utils/file.h>.

Change-Id: Id79961cc4feee1c307dad06d64e3f4ffe060c4da
diff --git a/server/InterfaceController.cpp b/server/InterfaceController.cpp
index f0b313f..64b8453 100644
--- a/server/InterfaceController.cpp
+++ b/server/InterfaceController.cpp
@@ -20,6 +20,7 @@
 
 #define LOG_TAG "InterfaceController"
 #include <cutils/log.h>
+#include <utils/file.h>
 
 #include "InterfaceController.h"
 #include "RouteController.h"
@@ -49,7 +50,7 @@
 		return -1;
 	}
 	asprintf(&path, "%s/%s/%s", ipv6_proc_path, interface, setting);
-	int success = writeFile(path, value, strlen(value));
+	bool success = android::WriteStringToFile(value, path);
 	free(path);
 	return success;
 }
@@ -119,7 +120,7 @@
 		return -1;
 	}
 	asprintf(&path, "%s/%s/mtu", sys_net_path, interface);
-	int success = writeFile(path, mtu, strlen(mtu));
+	bool success = android::WriteStringToFile(mtu, path);
 	free(path);
 	return success;
 }