diff --git a/src/File.php b/src/File.php
index <HASH>..<HASH> 100755
--- a/src/File.php
+++ b/src/File.php
@@ -29,12 +29,21 @@ abstract class File
     /**
      * @param $filename
      * @param $content
-     * @return int|null
+     * @param bool $append
+     * @return int
      */
-    public static function write($filename, $content)
+    public static function write($filename, $content, $append = false)
     {
         if (Directory::make(dirname($filename))) {
-            return file_put_contents($filename, $content);
+            if (gettype($content) !== TYPE_STRING) {
+                $content = json_encode($content);
+            }
+            $flags = 0;
+            if ($append) {
+                $content = $content . PHP_EOL;
+                $flags = FILE_APPEND;
+            }
+            return file_put_contents($filename, $content, $flags);
         }
         return null;
     }
Write enhancements

- allow save content objects (will be json serialized)
- add append content support