How to read data from any of the usb ports using the arduino

what kind of data are you thinking on reading? What are you trying to do?
If you want to read serial data, there is some very good info about it (with examples and all) on the reference.
Here is the main page for the Serial:

and then on the right side you can choose and learn about some very useful functions to read data coming from serial...
:wink:

here is an example of reading data from serial:

int incomingByte = 0;   // for incoming serial data

void setup() {
  Serial.begin(9600);     // opens serial port, sets data rate to 9600 bps
}

void loop() {

  // send data only when you receive data:
  if (Serial.available() > 0) {
    // read the incoming byte:
    incomingByte = Serial.read();

    // say what you got:
    Serial.print("I received: ");
    Serial.println(incomingByte, DEC);
  }
}

the example was taken from this page:

we check if the Arduino got some data and, if yes, we store that data into the incomingByte variable.
Then we can do whatever with that information, in this case it is being printed (in decimal)...

:wink: