Article ID: 57345 - Last Review: August 16, 2005 - Revision: 2.1 Transferring Files Between Macintosh and MS-DOS ComputersThis article was previously published under Q57345 On This PageSUMMARY
There are several methods that can be used to transfer text files from
MS-DOS-based computers to Macintosh computers. Binary data files can
sometimes be transferred, depending on the format of the information
they contain. It is useless to transfer binary executable program
files, as the machine code of MS-DOS computers (based on the Intel
chip set) and the Macintosh computers (based on the Motorola chip set)
is very different.
This information applies to Microsoft QuickBASIC for the Macintosh Version 1.00, to Microsoft QuickBASIC Versions 4.00, 4.00b, and 4.50 for MS-DOS, to Microsoft BASIC Compiler Versions 6.00 and 6.00b for MS-DOS and MS OS/2, and to Microsoft BASIC Professional Development System (PDS) Version 7.00 for MS-DOS and MS OS/2. MORE INFORMATION
The following are several methods for transferring files between the
Macintosh and MS-DOS-based computers:
Transferring Text Files from IBM to MacintoshThe interpreter environment in Microsoft QuickBASIC for the Apple Macintosh automatically accepts source code files that have linefeeds at the end of lines.When reading a text data file that was created on an IBM into a Macintosh program, the extra linefeeds may appear as small square boxes. The square box is the Macintosh's representation for the linefeed. The linefeeds need to be stripped from the file for the Macintosh to work with the file. After transferring a file from IBM to Macintosh, you might want to change the file's type to TEXT if the transfer utility (program) does not do it for you. The following are two ways to change a file's type to TEXT:
SetCreate and creator and double-click Transferring Text Files from Macintosh to IBMWhen text files created on the Macintosh are displayed on an MS-DOS computer, they will have all the lines of data on one line. This is a result of the Macintosh not appending a linefeed to the end of each line of text. This problem can be solved by writing a program on the Macintosh that will append the required linefeed onto the end of each line of text (as shown in the Code Example below). The file can then be transferred over to the MS-DOS computer.The following source code, written for Microsoft QuickBASIC Version 1.00 for the Apple Macintosh, will read in a text file and output another text file that is in a suitable format (carriage return plus linefeed terminating each line) for reading on an MS-DOS-based machine: APPLIES TO
| Article Translations
|


Back to the top
