Turnin program says my file is binary when its not
Problem
The turnin program is saying that a file is binary and not letting him turn it in.The file is not binary and the "file" command verifies that. What is happening?
Solution
The turnin program looks at the content of the file to determine its type. Program files that are created on Windows machines can confuse turnin. Removing (the sometimes hidden) extra characters that Windows adds to files will fix this problem. To do so, run the "dos2unix" command installed on all linux machines like this: dos2unix [[name_of_your_file]].
For example, if you want to run dos2unix on a file called Main.cpp, please type:
dos2unix Main.cpp
Related articles