Currently working on a program that will read a block of test from a .txt file and add three to each character if encrypt is chosen and -3 if decrypt is chosen(their ascii values will increase/decrease by 3) and the result will be printed to CMD. My program works perfectly however if I run it, it prints over itself because the newline chars are not being converted... at least I think.
I'm not sure the way im reading the data in is correct and if it is wrong what should i be using to read it in.
given an input of...
Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae
The output should be...
Vhg#xw#shuvslfldwlv#xqgh#rpqlv#lvwh#qdwxv#huuru#vlw#yroxswdwhp#dffxvdqwlxp#groruhptxh#odxgdqwlxp/#
wrwdp#uhp#dshuldp/#hdtxh#lsvd#txdh#de#loor#lqyhqwruh#yhulwdwlv#hw#txdvl#dufklwhfwr#ehdwdh#ylwdh#