File and networking functions

Function for handling files and network connections are located in the file list.