0
I have a txt file that informs me 3 fields: error line, wrong number and number to replace.
However I am not thinking of an instruction to go directly to the line I need, this file follows a layout.
I can put examples here if you like.
https://pastebin.com/5eDHQcgX <- FILE WHERE I WANT TO MAKE THE MODIFICATIONS https://pastebin.com/xKkJjyds <- ARCHIVE WITH LINES AND VALUES TO REPLACE
Way I’m capturing my txt.
private void button1_Click(object sender, EventArgs e)
{
selecionaArquivo();
}
public void selecionaArquivo()
{
try
{
if (abrirArquivo.ShowDialog() == DialogResult.OK)
{
speed = new StreamReader(abrirArquivo.FileName);
MessageBox.Show("Arquivo importado");
}
Put an example of the file can help in understanding what you want.
– Edu Mendonça
For example On the 125479 line of this my file has C425|1033395|4,000|CX|11,96|0,20|0,91| And I want to replace the value 11,96 by 12,15 And I already have a file with these error "logs". 125479|11,96|12,15, where, in order is: line where the wrong is, given to be replaced, given to be inserted in place
– wesley
@Wesley the link you posted on the question, there is the line 125479.
– Matheus Miranda
Oh yes, it was just an example.
– wesley