Updated FileLogger and FileSystem.

Moved write line functionality into FileSystem.