Update source.cpp

Changin to binary write mode
Leveling testing branch with main
Merge branch 'master' into testing

Conflicts:
	source.cpp