GPS NEO 6M + ARDUINO MEGA DOES NOT RECEIVE INFORMATION

hello, I have been trying connected gps neo 6m to the arduino mega but this thing have been impossible receive any data from gps module.
I was trying with many codes but I couldn't get it.
someone could help me?
here I post one of the first code that I used, and also, I don't know why this code does not work with arduino mega.

#include <SoftwareSerial.h>

SoftwareSerial gps(10,11);//rx,tx

char dato=' ';

void setup()
{
 Serial.begin(115200);            
 gps.begin(9600); 
 Serial.println("conectado");
}


void loop()
{
  if(gps.available())
  {
    dato=gps.read();
    Serial.print(dato);
  }
}

Does your GPS have a clear view of the sky, and have you allowed time for it to obtain a lock on the satellites? If the unit has a PPS LED, it will begin to blink at a 1Hz rate after a successful lock.

I don't know why this code does not work with arduino mega.

You have 4 hardware serial ports. You are using one of them. Why are you using SoftwareSerial when you have 3 unused hardware serial ports?