Normally WPA Supplicant file is located at:

/etc/wpa_supplicant/wpa_supplicant.conf

You can easily edit the file by using nano:

sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

or vim:

sudo vim /etc/wpa_supplicant/wpa_supplicant.conf

The default format for the file is:

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=<Insert 2 letter ISO 3166-1 country code here>

network={
 ssid="<Name of your wireless LAN>"
 psk="<Password for your wireless LAN>"
}

Reference for country code here.