How Do I Save an ASCII Text File?

In the Windoze world, Notepad is a simple editor that saves text strictly in ASCII format. Clean, not embellishments or tags. Sometimes it needs to be that way.
What do I use to save ASCII text on a Mac? Somebody at the Apple store told me the answer is TextEdit, but when I went to save a file just now my choices were rich text (.rtf), HTML, Word format, or XML. No ASCII in the bunch.
So, is there a program on here that does what Notepad does? Is there one out there somewhere...??
--PS

I forgot to mention, that this can also be set in the Preferences of Textedit to be the default setting:
use plain text; add .txt extension when saving.
I think that's all I needed to hear -- I've looked at the preferences for TextEdit and set them the way I think I want them.
Thanks,
--PS

Similar Messages

  • How to get the content of text file to write in JTextArea?

    Hello,
    I have text area and File chooser..
    i wanna the content of choosed file to be written into text area..
    I have this code:
    import java.awt.Container;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.File;
    import javax.swing.JButton;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.*;
    public class Test_Stemmer extends JFrame {
    public Test_Stemmer() {
    super("Arabic Stemmer..");
    setSize(350, 470);
    setDefaultCloseOperation(EXIT_ON_CLOSE);
    setResizable(false);
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    JButton openButton = new JButton("Open");
    JButton saveButton = new JButton("Save");
    JButton dirButton = new JButton("Pick Dir");
    JTextArea ta=new JTextArea("File will be written here", 10, 25);
    JTextArea ta2=new JTextArea("Stemmed File will be written here", 10, 25);
    final JLabel statusbar =
                  new JLabel("Output of your selection will go here");
    // Create a file chooser that opens up as an Open dialog
    openButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent ae) {
         JFileChooser chooser = new JFileChooser();
         chooser.setMultiSelectionEnabled(true);
         int option = chooser.showOpenDialog(Test_Stemmer.this);
         if (option == JFileChooser.APPROVE_OPTION) {
           File[] sf = chooser.getSelectedFiles();
           String filelist = "nothing";
           if (sf.length > 0) filelist = sf[0].getName();
           for (int i = 1; i < sf.length; i++) {
             filelist += ", " + sf.getName();
    statusbar.setText("You chose " + filelist);
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that opens up as a Save dialog
    saveButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    int option = chooser.showSaveDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You saved " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    // Create a file chooser that allows you to pick a directory
    // rather than a file
    dirButton.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent ae) {
    JFileChooser chooser = new JFileChooser();
    chooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
    int option = chooser.showOpenDialog(Test_Stemmer.this);
    if (option == JFileChooser.APPROVE_OPTION) {
    statusbar.setText("You opened " + ((chooser.getSelectedFile()!=null)?
    chooser.getSelectedFile().getName():"nothing"));
    else {
    statusbar.setText("You canceled.");
    c.add(openButton);
    c.add(saveButton);
    c.add(dirButton);
    c.add(statusbar);
    c.add(ta);
    c.add(ta2);
    public static void main(String args[]) {
    Test_Stemmer sfc = new Test_Stemmer();
    sfc.setVisible(true);
    }could you please help me, and tell me what to add or to modify,,
    Thank you..                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    realahmed8 wrote:
    thanks masijade,
    i have filter the file chooser for only text files,
    but i still don't know how to use FileReader to put text file content to the text area (ta) ..
    please tell me how and where to use it..How? -- See the IO Tutorials on Sun for the FileReader (and I assume you know how to call setText and append in the JTextArea).
    Where? -- In the actionPerformed method (better would be a separate thread that is triggered through the actionPerformed method, but that is probably beyond you at the moment), of course.
    Give it a try.

  • Can I save and read text files on a server that I host?

    Hello everyone,
    I am a java hobbiest. I was wondering if I set up my own server, running out of my house, could I have my applets save to my computer and read from my computer without having to learn JDBC and a DATABASE language. In other words could i just have my applet save and read text files from and to my server?
    I'm trying to set up a sight for my 5th grade class where parents can log into. Thanks for your time.
    Oh yeah, which is easier, learning how to set up a server or learning JDBC and a DATABASE language?
    If you have any other good idease please tell me them
    Thank you, Bryan

    Short answer: This isn't gonna work
    Long answer: For this to work, the first thing you're going to need is a static IP address and a DNS name registered -actually you don't necessarily need #2 but you're probably gonna want it and it's by far the easier of the steps.
    As far as I know to get a fixed IP address you've either gotta be directly attached to a larger network (ie university network) or get a leased line from an ISP.
    Once you've got that done come back to us.

  • How can I sav an emailed .mov file to my iPad?

    How can I sav an emailed .mov file to my iPad?

    Yes there is, if you hold down the attachment widget in the email once the video is downloaded, it will give you a series of options to save it to, including camera roll. 
    Hope this solves your question. 
    Cheers,
    Allen

  • How do I save a word pdf file to png file for up load onto FB

    how do I save a word pdf file to png file for up load onto FB

    What is a Word PDF file? There are Word files and there are PDF files. What does your question have to do with Boot Camp, the subject of this discussion group?

  • How do I save changes in text size

    How do I save increases in text size. The zoom feature reverts to earlier setting when I change web page. I was not able to change font size using font setting under content tab in tools.

    You can use an add-on to set the zoom level for all sites. For example, [https://addons.mozilla.org/en-US/firefox/addon/nosquint/ NoSquint] and [https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/ Default FullZoom Level].

  • How do I save an Illustrator CS4 file as a CS2 file?

    How do I save an Illustrator CS4 file as a CS2 file?

    http://forums.adobe.com/message/3028501#3028501
    http://forums.adobe.com/message/1275606#1275606

  • How do I save an illustrator cc file to open in cs6?

    How do I save an illustrator cc file to open in cs6?  I get an error when I send the file to a colleague and they cant open it.
    It doesnt give me any options.

    It should give you many options.
    Save it to CS6 format.
    If you cannot do that, provide more details.

  • How can I save a Motion 5 file as a video?

    How can I save a Motion 5 file as a video? I want to use it in an iMovie Project.

    Everything about using Motion, including exporting a video (and much more), is available either in the application or online:
    Help Menu> Motion 5 Help: see the Share Motion Projects chapter.
    The manual can also be found online here: http://www.apple.com/support/motion/
    Finally there is also this link to the manual: http://help.apple.com/motion/mac/5.1/

  • Save string in text file

    I have program to store Arabic string and save it in text file i use Eclpise there i did change the encoding to UTF-8 so i can read the string and print it fine but when i save it as a text file in c drive i get this ��������;����������������������;�������� insted of the arabic string.
    this is a part of the code:
    FileOutputStream fileStream;
    try {
    fileStream = new FileOutputStream ("c:/test/f1.txt");
    PrintWriter pw=new PrintWriter(fileStream, true);
    // s2=new String(s2.getBytes( "UTF-8"));
    pw.println(s2);
    } catch (FileNotFoundException e) {
    e.printStackTrace();
    }

    Hi
    Have a look at your OS settings and make shure that your OS regional setting allows support for Arabic.
    If you are using Windows you can check the settings at
    Start --> Settings --> Controll Pannel --> Regional and Language Options.
    Regards
    Vijendra

  • Where are these unix executable files coming from and how do I recover the original text file?

    where are these unix executable files coming from and how do I recover the original text file?

    When you upgraded to Lion did you have AppleWorks installed on your mac?
    Most of the AW documents can be opened by Pages 09 or Numbers 09 with most of the orginal format in tact. (I do not know if previouse verision will work) just open the AW file with both and see which one works best.
    Text Edit will also open most of the AW files as well but will require a lot of work to restore them to their orginal format.
    If you have AW Database documents then they are not supported. 
    These document show up as "exec icons", Kind: Unix Executagle File.
    They also will show up as .cwk file if they are small files. I have a couple that were under 1mb that are shown as " Kind: AppleWorks Document" but will not open.
    The only option to open AW database is to have AW installed on a mac with a pre-Lion OS to recover the file.

  • How can u insert and retrieve text files in any format using forms6i.

    how can u insert and retrieve text files in any format using forms6i.
    can u give me an example of an insert statement, let's assume the file is located in the a:drive.
    and retrieving the files, i would give the user a list of all the files that are in the database, the user would select one, but what command(or piece of code) would open the file in its apppropriate editor.
    e.g .pdf formatted file would open in acrobat.
    any help would be appreciated.
    Thanks
    Hussein Saiger

    the filereference class is for downloading and uploading files.
    if you want to load xml, use the xml class.
    and, if you want to write to an xml file and don't want to use server-side code, wait.

  • How do I save individual edited MTS files in CS6

    how do I save individual edited MTS files in CS6

    Set the work area on the timeline to the limits of the clip that you want to export.  Then File>Export>Media. 
    You need to consider what the exported file is intended for, so you can determine a suitable format and preset for the export.

  • How do I save my Photoshop CC file down to CS5?

    How do I save my Photoshop CC file down to CS5?

    Please refer following Adobe official blog on the subject.
    http://blogs.adobe.com/jnack/2013/05/can-you-open-a-photoshop-cc-file-in-cs6.html
    Hope this help.

  • How do you save a jepeg scanned file to email it?

    I scanned a document and the mac saved it as a jpeg file in photosmart utility (colorsync utility?).  I could not email it as an attachment,  and I could not save it as a different type of file.  I could not copy the file to paste it as a word document.  How do you save a jpeg scanned file to email it?

    I scanned the document on an hp injet printer and it was all automatically done by the laptop.  I didn't use image capture, that I know of.  I don't know what that is, or how to utilize it to scan the pages.  I scanned about 10 pages and they went into a folder called scanner output.  I was able to attach that to the email, but then the email could not be sent.  The email tries to send it, then after about 7-8 minutes I get a message that says:
    "Sending the message content to the server failed.
      Select a different outgoing mail server from the list below or click Try Later to leave the message in your Outbox until it can be delivered."

Maybe you are looking for

  • Problem with 7.0.2 - help!

    My itune has been working properly. Unfortunately I made the mistake of updating it to the 7.0.2 version. After I install the new version, whenever I open itune, the "updating library" box will come up and about 1/4 through the update, there will alw

  • Download ipod content to a new itunes library

    Tired of sharing iTunes with my kids.  How do I download the content from my iPod Classic to a new iTunes library?

  • High I/O wait observed in Linux based Oracle Database Server

    Hi, We have just migrated Oracle Database from Solaris Server to Linux VM [ESX] server. We have observed that there is high I/O wait issues while database query is running on Linux VM, which was ideally zero in case of Solaris. The same Database was

  • Is there any IDE for compiling/debugging FlasCC apps?

    I want to use FlasCC for a large project, but I have no experience with GDB. Is there an IDE for FlasCC out there so I can do the compiling/debugging things (mostly debugging)? Or could anyone tell me how to configure one (like eclipse)?

  • Maintaining details in other languages

    Dear all, For a rollout to Russia we have created new MRP controllers, we have done the required customization in english, please suggest me how to maitain it in russian language because when i select the field and in the menu bar select goto i am ge