SDK Migration: Selected text writes to specified file #10