Windows Files to Mac Files

Hi there, I have windows files on my Mac but I don't know how to convert those files into Mac files. does that make sense to anyone? Because while they are windows files, I cant open them on my Mac.


Please help this is urgent



Thanks

MacBook Air 13″, macOS 12.1

Posted on Feb 6, 2022 11:08 PM

Reply
3 replies

Feb 7, 2022 9:29 AM in response to BobTheFisherman

A text file on a Windows PC is the same as a text file on a Mac


Not exactly.


The content will be the same except that every line ending in the Windows-sourced text file will have a carriage-return in it, which is not compatible with the expected line-feed only ending on macOS (UNIX). Those Windows line endings in the text file will need to be removed in macOS.


This can be done by opening the text file in a programmer's editor (e.g. BBEdit) and resaving the text file with UNIX line endings. Or alternatively in the Terminal application, avoiding any scripting language dependency:


col -b < windows_text.txt > macOS_text.txt



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Windows Files to Mac Files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.