Hey.
I still don't have a code to post. But I have the idea and would like to know how it would be possible to do it in practice.
I have two .txt files recorded in the spiffs of an esp32 wroom.
Each file has a few lines, and each line starts with a number, an alphanumeric identifier, and a name, like this:
FileA.txt
0,A0001,João
4,Z0144,Maria
3,Y0008,Kelly
1,B0003,Pedro
2,C0004,Alfredo
FileB.txt
0,A0001,João
3,Y0008,Kelly
4,Z0144,Maria
I need to create the file File C using any if in such a way that its content is formed by the existing lines in FileA that are NOT in FileB. Would be like this:
FileC.txt
1,B0003,Pedro
2,C0004,Alfredo
The second field, alphanumeric, B0003, C0004, etc is the field that must be used to make the comparison, to do the search, that is, all the other fields must be ignored by the piece of code that would carry out this mission.
In other words, it's the field after the first comma that matters. The other fields will just be repeated line by line.
Does anyone have one....try this...?
Very Thanks