How to put 0x0D 0x0A at the end of a txt file

Asked

Viewed 70 times

0

I have the end of the code of my txt file below and according to the recipe manual, asks me to put the characters 0x0D 0x0A at the end of the record.

How could I do that?

ATT01 = DETIM.ValidaATT(item.Cells["att"].Value.ToString()).PadRight(17, ' ');
ATT01 =   ATT01.Substring(0, ATT01Const);
Filler1 = Tamanho01.ToString().PadRight(2, ' ');
Filler1 = Filler1.Substring(0, Filler1const); //Acho que deveria ser colocado aqui mas não sei como!!

1 answer

2

According to This table

inserir a descrição da imagem aqui

What you need is to add at the end of your file the following string: \r\n

Browser other questions tagged

You are not signed in. Login or sign up in order to post.