adding hosts info and removing hosts info via File/IO instead of system calls. should work on windows