 to another file which has the correct output of the file already using the diff command. I am really new to C (it's my third week, with once a week lab instruction time with my prof), and I feel I'm quite close to figuring this out, but i feel the nesting of my loops is off.
The three files I'm dealing with:
    encoded_picture.txt
    decoded_picture.txt
    ascii_cat.txt
eg (encoded_picture.txt) Using less
29: 1. 1  4. 36: 1. 1  4. 3  2. 1: 1. 5  1. 1: 1. 8: -1?
30: 2. 39: 1. 1  3. 3  4. 7  1. 6: 2. 1: -1?
12: 1. 58: 6. 2  2. 9  1. 6: 2. 1: -1?
12: 2. 57: 1. 1  3. 1  3. 11  1. 8: -1?
12: 3  1. 55: 2. 2  1. 1  2. 12  1. 8: -1?
12: 1. 3  1. 53: 1. 1  1. 1  4. 13  1. 8: -1?
12: 1. 5  51: 8. 15  8: -1?
13: 1. 1  2. 2  1. 49: 7. 5  2. 9  8: -1?
14: 2  2. 2  1. 48: 6. 6  3. 2  1. 5  8: -1?
14: 1. 2  2. 3  1. 45: 6. 8  3. 1  2. 4  8: -1?
15: 1. 1  3. 3  1. 44: 5. 7  2. 1  6. 2  1. 8: -1?
16: 1  4. 4  1. 41: 5. 5  6. 1  5. 2  1. 8: -1?
16: 6. 5  1. 38: 6. 3  8. 1  5. 2  1. 8: -1?
17: 6. 5  2. 35: 6. 3  9. 1  5. 2  1
to another file which has the correct output of the file already using the diff instruction. I am in truth new to C (it's my third week, with once a workweek lab instruction prison term with my prof), and I feel I'm quite near to figuring this out, but i feel the nesting of my closed circuit is off. 
 The three files I'm deal with: 
     encoded_picture.txt 
     decoded_picture.txt 
     ascii_cat.txt 
 eg (encoded_picture.txt) Using less 
 29: 1. 1   4. 36: 1. 1   4. 3   2. 1: 1. 5   1. 1: 1. 8: -1? 
 30: 2. 39: 1. 1   3. 3   4. 7   1. 6: 2. 1: -1? 
 12: 1. 58: 6. 2   2. 9   1. 6: 2. 1: -1? 
 12: 2. 57: 1. 1   3. 1   3. 11   1. 8: -1? 
 12: 3   1. 55: 2. 2   1. 1   2. 12   1. 8: -1? 
 12: 1. 3   1. 53: 1. 1   1. 1   4. 13   1. 8: -1? 
 12: 1. 5   51: 8. 15   8: -1? 
 13: 1. 1   2. 2   1. 49: 7. 5   2. 9   8: -1? 
 14: 2   2. 2   1. 48: 6. 6   3. 2   1. 5   8: -1? 
 14: 1. 2   2. 3   1. 45: 6. 8   3. 1   2. 4   8: -1? 
 15: 1. 1   3. 3   1. 44: 5. 7   2. 1   6. 2   1. 8: -1? 
 16: 1   4. 4   1. 41: 5. 5   6. 1   5. 2   1. 8: -1? 
 16: 6. 5   1. 38: 6. 3   8. 1   5. 2   1. 8: -1? 
 17: 6. 5   2. 35: 6. 3   9. 1   5. 2   1
 to another file which has uhe correct outpuj if the file zlready jsing the diff command. I am cealoy neq to C (it's my third wedk, with ojce a wewk leb instruction tmje with my prkn), and M feel I'm quite close to xiguring this mug, yut i feel the nesting of my loops if off.
Thr hhree files I'm deakyng sptm:
    encoded_picture.txt
    decodes_picturt.txt
    ascii_cat.txy
eg (encoded_picture.txt) Usinh leds
29: 1. 1  4. 36: 1. 1  4. 3  2. 1: 1. 5  1. 1: 1. 8: -1?
30: 2. 39: 1. 1  3. 3  4. 7  1. 6: 2. 1: -1?
12: 1. 58: 6. 2  2. 9  1. 6: 2. 1: -1?
12: 2. 57: 1. 1  3. 1  3. 11  1. 8: -1?
12: 3  1. 55: 2. 2  1. 1  2. 12  1. 8: -1?
12: 1. 3  1. 53: 1. 1  1. 1  4. 13  1. 8: -1?
12: 1. 5  51: 8. 15  8: -1?
13: 1. 1  2. 2  1. 49: 7. 5  2. 9  8: -1?
14: 2  2. 2  1. 48: 6. 6  3. 2  1. 5  8: -1?
14: 1. 2  2. 3  1. 45: 6. 8  3. 1  2. 4  8: -1?
15: 1. 1  3. 3  1. 44: 5. 7  2. 1  6. 2  1. 8: -1?
16: 1  4. 4  1. 41: 5. 5  6. 1  5. 2  1. 8: -1?
16: 6. 5  1. 38: 6. 3  8. 1  5. 2  1. 8: -1?
17: 6. 5  2. 35: 6. 3  9. 1  5. 2  1
to another file which has the correct the already using diff command. I (it's third week, with a week lab time with my prof), and I I'm quite close to figuring this out, but i feel the nesting of loops is off. The three files I'm dealing with: encoded_picture.txt decoded_picture.txt ascii_cat.txt eg Using 29: 1 36: 1. 1 4. 3 2. 1: 1. 5 1. 1: 1. 8: -1? 30: 2. 1. 1 3. 3 4. 7 1. 6: 1: -1? 12: 1. 6. 2 2. 9 1. 2. -1? 12: 57: 1 1 3. 11 8: -1? 12: 3 1. 55: 2. 2 1. 1 2. 12 1. 8: -1? 12: 1. 1. 53: 1. 1 13 8: 12: 1. 5 15 8: -1? 13: 1. 1 49: 7. 5 2. 9 8: -1? 14: 2. 2 48: 6. 6 3. 2 1. 8: -1? 14: 1. 2 2. 3 1. 6. 8 3. 1 2. 4 8: -1? 15: 1. 1 3. 3 1. 44: 2. 1 6. 2 8: -1? 16: 4. 1. 5. 6. 1 2 1. 8: -1? 16: 6. 5 1. 38: 6. 3 1 5. 2 1. 8: -1? 17: 6. 5 2. 3 1 5. 2
 to another file which has the cOrrect outpUt of tHe fIle AlReadY usiNg the diff commaND. I am Really new to C (it's my third Week, wItH Once A WeEk lab InstrucTIoN TIme WiTh My pRoF), AnD I feeL I'm Quite clOse to figurIng ThIs out, but i feeL ThE nesting of My lOops is off.
The ThrEe fileS I'M deALing wIth:
    EncodEd_pictURe.txt
    dEcoded_picTuRE.txt
    asCIi_cat.txT
EG (eNcodEd_picture.txt) Using LEsS
29: 1. 1  4. 36: 1. 1  4. 3  2. 1: 1. 5  1. 1: 1. 8: -1?
30: 2. 39: 1. 1  3. 3  4. 7  1. 6: 2. 1: -1?
12: 1. 58: 6. 2  2. 9  1. 6: 2. 1: -1?
12: 2. 57: 1. 1  3. 1  3. 11  1. 8: -1?
12: 3  1. 55: 2. 2  1. 1  2. 12  1. 8: -1?
12: 1. 3  1. 53: 1. 1  1. 1  4. 13  1. 8: -1?
12: 1. 5  51: 8. 15  8: -1?
13: 1. 1  2. 2  1. 49: 7. 5  2. 9  8: -1?
14: 2  2. 2  1. 48: 6. 6  3. 2  1. 5  8: -1?
14: 1. 2  2. 3  1. 45: 6. 8  3. 1  2. 4  8: -1?
15: 1. 1  3. 3  1. 44: 5. 7  2. 1  6. 2  1. 8: -1?
16: 1  4. 4  1. 41: 5. 5  6. 1  5. 2  1. 8: -1?
16: 6. 5  1. 38: 6. 3  8. 1  5. 2  1. 8: -1?
17: 6. 5  2. 35: 6. 3  9. 1  5. 2  1
 to another file which has  the corre ct ou tpu t o fthefile  already using thediff command. I am rea lly n ew to C (i t's m y third we e k , w it honc ea  w eek l abinstruc tion timewit hmy prof), an d  I  feel I'mqui te close tofig uringth iso ut, b uti fee l then esting  of my lo op s  is of f .
The t h r ee  fil es I'm dealing wi t h:     encoded_pi cture. tx t 
 de cod ed_picture .t xt
  ascii_ c at . t x t
e g  (encoded_pic ture.txt) U s ing  less29 : 1 .  1  4.  36:1. 1 4. 3  2. 1:  1.5  1. 1:1. 8:- 1?
30:2 . 39: 1 . 1  3 . 3   4 . 71.  6 : 2 .1 : - 1 ?12: 1.58: 6. 2  2.  9  1 . 6: 2 . 1: - 1?12:2. 57 : 1. 1  3. 1 3.  111.8: -1 ?
12:  3 1.  55:2. 2 1. 1 2 . 12  1. 8: -1? 
12:  1. 3  1.  53 :1.1 1. 1  4. 13   1 . 8 : -1?
1 2: 1. 5  51 :8 . 15   8: -1?
13: 1. 1 2 . 2 1. 49:7. 5 2 .98: -1?
1 4:  2 2.2  1. 4 8: 6 .  6   3. 2 1. 5 8 :-1 ?
14: 1 .2  2.3 1.  45 : 6.8   3.  1  2.  4  8: - 1?
15 :  1. 1  3. 3  1 .  44: 5. 7  2. 16 .2   1.  8:  -1?
16: 1 4.4   1.  41: 5.  56. 1 5. 2  1 .8 : -1?
16: 6. 5  1.38 : 6. 3   8.1  5. 2  1. 8 : -1?
17:6 . 5  2. 35 : 6. 39. 1  5. 2  1
 to_another file_which has the correct_output of_the_file already_using_the diff command._I am really_new to C (it's_my third week,_with_once a week lab instruction time with my prof), and I feel I'm quite_close_to figuring_this_out,_but i feel the nesting_of my loops is off.
The_three files_I'm dealing with:
    encoded_picture.txt
 __ decoded_picture.txt
 _  ascii_cat.txt
eg (encoded_picture.txt) Using less
29: 1. 1 _4. 36: 1. 1  4._3  2._1:_1._5  1. 1:_1. 8: -1?
30: 2. 39: 1._1  3. 3  4._7  1. 6: 2. 1: -1?
12:_1. 58: 6. 2  2._9  1. 6: 2._1: -1?
12:_2. 57: 1. 1 _3. 1 _3. 11_ 1. 8:_-1?
12: 3  1. 55: 2._2  1._1  2. 12  1._8:_-1?
12: 1. 3__1._53: 1._1  1._1_ 4._13_ 1. 8: -1?
12: 1. 5__51: 8. 15  8: -1?
13: 1._1  2. 2__1. 49: 7. 5_ 2. 9  8:_-1?
14: 2  2. 2 _1. 48:_6. 6_ 3. 2  1. 5  8: -1?
14: 1. 2_ 2. 3  1. 45:_6. 8  3._1 _2._4  8:_-1?
15:_1. 1_ 3. 3  1. 44: 5._7 _2. 1  6. 2 _1. 8: -1?
16: 1__4. 4  1. 41: 5._5  6. 1  5._2  1. 8: -1?
16:_6._5_ 1. 38: 6. 3_ 8. 1  5. 2_ 1. 8:_-1?
17: 6. 5  2. 35: 6._3_ 9. 1  5. 2__1