For example, if you have Microsoft Word installed on the computer and want to open a Word document from the command line, you would enter the following: start hope.doc
The start command can also be used to open any file on your computer. In the example above, if the file "hope.txt" did not exist in the current directory, you are prompted to create a new file. You can also use the start command to open a file in a text editor, such as Notepad, using the following command.
#Making a txt file on mac windows#
New, 64-bit versions of Windows no longer support the edit command. See our edit command page for further information on this command.If you do not have a mouse, see the edit command page for keyboard shortcuts and other navigation tips.Īfter clicking exit, if any changes were made, you'll be asked if you want to save the file. Once you have edited the file or typed the information for the file, click File, and choose Exit. If the file does not exist, was entered improperly, or is empty, a blank window similar to the example below is shown. In the Open window, browse to the location of the file, select the file, and then click OK or Open.Once the program is opened, from the file menu, select Open or use the keyboard shortcut Ctrl+ O.For example, if you wanted to view the file in Microsoft Word, you would open it first. Open the program you want to use to view the file.Select Open With from the drop-down menu that appears, and then select the program you want to use to open the file. If the file is associated with a program, but you want to use a different program, hold down the Shift and right-click the file. Why do I get an 'Open with' window when opening a file?.If you don't know which program to use, try using WordPad or Notepad. If the file is unassociated with a program, you will receive an "Open With" prompt. The associated programs open each file and display them on the computer screen.
#Making a txt file on mac pdf#
If you wish to read log files on Linux (or another Unix-like operating system), you can do it from the command line. How Can I Read Log Files on a Linux Computer?
#Making a txt file on mac mac#
Unfortunately, handling log files with TextEdit isn’t as intuitive or simple as with Notepad++ for Windows, which is why many users who switch from Windows to Mac resort to other methods. The folder called ~Library/Logs shows the user-specific application log folder for the currently logged-in user, and you can access other users’ data by logging out, signing in as another user, and reopening the Console app.įinally, you can handle log files as you would any other text file and access them via a text editor like TextEdit. The System Reports folder contains information about all system applications, while you can find user application logs in the User Reports folder. The default screen shows console errors, but you can go through other folders for other reports. The Console app is basically the Mac version of Event Viewer for Windows, and you can access it via Finder or Spotlight search.