File and string manipulation codes.