I have a file in this format (zero indicates the line has finished):
-1 2 0
-2 3 0
$
-1 3 0
What do I do to identify if the file line has a $
? Because I have to implement this conditional to perform the exchange of numbers signals, that each number (with signal exchanged) has its own line and that each line should end with zero.