Hello -
I have started coding C since September and am trying to compile a program which works as a very rudimentary code breaker (utilizing english language letter frequencies).
I have managed to find the letter frequencies of a document and sort them - but was trying to find a way to read the input (which was originally stdin from the keyboard) a second time in order to replace the original letters with new letters.
It was suggested that I read from a second file in the same directory using fopen and fgetc to read it - but when i try that I am getting a bus error. Yet it seems to work when compiled on a windows system. What might I be doing wrong? I can send the code if that is helpful.
Thanks -
Daniel
I have started coding C since September and am trying to compile a program which works as a very rudimentary code breaker (utilizing english language letter frequencies).
I have managed to find the letter frequencies of a document and sort them - but was trying to find a way to read the input (which was originally stdin from the keyboard) a second time in order to replace the original letters with new letters.
It was suggested that I read from a second file in the same directory using fopen and fgetc to read it - but when i try that I am getting a bus error. Yet it seems to work when compiled on a windows system. What might I be doing wrong? I can send the code if that is helpful.
Thanks -
Daniel