Potresti anche gestire il file di testo come fosse un file "ini" ed utilizzare le relative API di Windows... ma forse è troppo avanzata come gestione e nn si addice al tuo caso...