that's not the issue....
Yes you can manipulate I/O pin (set mode, read bits, write bits) by using direct port manipulations.Here is a write up that uses a 328P based board such as a Uno showing how to use port commands.http://www.arduino.cc/en/Reference/PortManipulationNot that the mega based boards have different and more pin mapping then a Uno board so you have to figure out which port names control which arduino pin names. This worksheet should help:https://spreadsheets.google.com/pub?key=rtHw_R6eVL140KS9_G8GPkA&gid=0Lefty
my issue is that how can i program multiple pins to be set as an output without the need of writting, pinMode function 100 times
and digitalWrite function 200 times if i want the 100 solenides to be tuned on and then off..