AELT TECNOLOGIA
← Todas as dicas

C#

Arquivo txt no C#

Publicado em 28/09/2016

Como criar um arquivo txt no C#: 

String caminho = @"C:\lista_data_201209.txt";

StreamWriter swriter = new StreamWriter(caminho); // Se você preferir pode por o caminho direto entre os parenteses.

Escreve no botão imprimir

swriter.WriteLine("tag_utime: " + ToXDate(tag_utime));

swriter.WriteLine("tag_value: " + (tag_value));

swriter.WriteLine("0: " + (0));

swriter.WriteLine("tag_descr: " + (tag_descr));

Não resolveu? A AELT resolve pra você.

Chamar no WhatsApp