Adding example for File and Stream API