File-like instead of str