Well, you want to edit this file, this means you need to use vi ( cheat sheet) or nano.
best regards Matthias
vi /opt/piratebox/conf/hostapd.conf
best regards Matthias