Data to cloud/local server/ local network

im working on a project that requires arduino to send data(.txt) to the cloud, a pc or a local network. Ive been reading some documentantion on the wifi modules but im a bit lost on which is the best option and how exacly does the transmission work.
Can someone shed some light on the topic for me?