public void showProfileToFile(FileWriter f) throws IOException, ProfileNotSetException {
        if (this.getEmail() == "" || this.getPhone() == ""
                || this.getDescription() == "") {
            f.write("User " + this.getName() + " does not have any info set.\n");
        } else {
            f.write("User " + this.getName() + " has the following info:\n");
            f.write("    -Email: " + this.getEmail());
            f.write("\n    -Telephone nr: " + this.getPhone());
            f.write("\n    -Description: " + this.getDescription());
            f.write("\n");
        }
    }