Copy File

There is no C++ function for this.  The fastest way is to open the file, read it byte by byte and write it out to the new file as you go (or use a library like boost which can do this).  A slower way is just to use a system call

Read More

Move File

Move File Functions On same drive To an external drive Moving between file systems is not possible with rename()  Move Multiple Files Using A Command

Read More

Configuring WiFi

Manually Configuring WiFi The file /etc/wpa_supplicant/wpa_supplicant.conf will be created/modified when setting up WiFi (it is referenced from the /etc/network/interfaces file that is no longer to be edited). You can find details of what it needs to contain here. An example network to add to the bottom of the file: After making changes reset the interface – see […]

Read More

UTF8 string with unicode to hex

Convert UTF8 string to a hex encoded string sutiable for use as a SSID hex encoded string Normal characters are converted into 2x hex digitsUnicode encoded characters using \x are retained as hex characters

Read More

Using char-Values

printf a value in a string Conversion Functions atoi – String To Int itoa – Int To String itoa is not part of ANSI C!  You can use this instead:

Read More

Special Characters

GTK Special Characters The following characters need escaping: &, <, > You can use g_markup_escape_text() to do it, e.g.:

Read More