Is it possible to force printf in C to print a large file, from which the following is a cut to make the last column aligned as below?
PS: The lines in the file are printed line-by-line in the code.
The current printf result:
Quote:
1 104 101 37 [3]
1 25 111 [2]
1 25 58 117 [3]
1 25 58 46 126 148 123 [6]
1 25 58 46 126 [4]
1 152 129 [2]
1 25 58 143 [3]
|
The goal is:
Quote:
1 104 101 37 [3]
1 25 111 [2]
1 25 58 117 [3]
1 25 58 46 126 148 123 [6]
1 25 58 46 126 [4]
1 152 129 [2]
1 25 58 143 [3]
|
For some reason the last column in the goal file is not aligned as required when I post the file as a code; anyhow, I look for number in between the square brackets to be aligned throughout the file.