Windows and Unix use different conventions with certain types of files. You need to be aware of these, if you are trying to use files from a Unix system on CTC. In particular:
- Binary files: little vs. big endian byte storage patterns. This refers to the order in which bytes are stored. The least significant bits occur in the first byte in little endian, and vice versa for big endian. So if you have a four byte word, the bit order is the same; but the byte order is reversed. This relates more to the computer architecture than the operating system. Data from big-endian machines (RS6000, PowerPC) will need to be converted to little endian.
- You will need to write a fortran or C program to do this conversion
- Text files: end-of-line characters differ (CR+LF in Windows, LF in Unix, CR on a MAC). If you transfer a windows file over to unix, you often see little ^M characters everywhere; those are the carriage returns showing up. There are software tools that are aware of these end-of-line differences and can do the necessary conversions automatically.
- Use ftp to convert EOL automatically during transfer
- WordPad (Programs:Accessories menu) can do EOL conversion; use this if you find you have a file that hasn't been converted cleanly