Added fileWrite to exemplify such functionality usage.