making two wires short when arduino gives 1 on digital output
Since you have given no particulars about what you want to switch, the only reasonable answer is a mechanical contact.  Since you want to electrically control that contact, you want a relay.

Driving a relay is pretty easy, but you can't just connect one to a digital output directly.  They usually require more current than a digital output can provide.  Here is a simple circuit that uses the digital signal to drive a transistor, which then drives the relay:



This works with the digital output high level being 3.3 or 5 V.  Even with just 3.3 V on the left side of R1, Q1 gets about 2.6 mA base current.  Most digital outputs can source that much, but check its datasheet to be sure.  In this example, the relay draws 63 mA.  With 2.6 mA base current and 63 mA collector current, the transistor must have a gain of at least (63 mA)/(2.6 mA) = 24.  Many small signal transistors, including the one shown, can easily guarantee that.

D1 may look like it does nothing, but it is not optional.  When the transistor turns off, the current thru the coil can't stop immediately.  D1 gives it a place to flow safely until it dies down due to the voltage drop across D1 and the internal resistance of the coil.  If D1 weren't there, the coil would raise the voltage on the collector of the resistor to whatever it takes to keep the current flowing in the short term.  That would fry the transistor.