Bom dia.
É o seguinte.: eu tenho um arquivo HORA300.txt, preciso ler esse arquivo:
Departamento Id. Nome Data/Hora Estado Id local
Matriz 4 MARIA GOMES DE MELO 2008-03-25 07:58:00 Entrada
Matriz 4 MARIA GOMES DE MELO 2008-03-25 11:58:00 Entrada
Matriz 4 MARIA GOMES DE MELO 2008-03-25 13:58:00 Entrada
Matriz 4 MARIA GOMES DE MELO 2008-03-25 17:58:00 Entrada
Matriz 5455 JOSE LUIZ DE MELO 2008-03-25 08:00:00 Entrada
Matriz 5455 JOSE LUIZ DE MELO 2008-03-25 12:00:00 Entrada
Matriz 5455 JOSE LUIZ DE MELO 2008-03-25 14:00:00 Entrada
Matriz 5455 JOSE LUIZ DE MELO 2008-03-25 18:00:00 Entrada
Depois de ler esse arquivo, eu quero remover o cabeçalho os nomes dos departamentos, converter os TABS em um carecter de espaçoe gerar o arquivo HORASAF.txt , dessa forma:
4 2008-03-25 07:58:00
4 2008-03-25 11:58:00
4 2008-03-25 13:58:00
4 2008-03-25 17:58:00
5455 2008-03-25 08:00:00
5455 2008-03-25 12:00:00
5455 2008-03-25 14:00:00
5455 2008-03-25 18:00:00
Obrigado por toda ajuda oferecida.