Saving .txt files as .rtf's

I have a bunch of .txt files that were created in Windows. When I open them in OS X, they appear in TextEdit, and the font is Monaco. Pretty unattractive. So I Command-A to select all, then go to Show Fonts, and change the whole document to Arial. I save it, but the Save window doesn't give me the option to save it as Rich Text. The choices are all Plain Text encodings. So even though I'm saving the document with Arial, the next time I open it, it's back to Monaco.
My workaround has been to just copy the text, paste it into a new TextEdit document, and there I am able to save it as an .rtf.
My question is: is there a faster, easier way to change the font in these Windows-created .txt files and then save them as .rtfs?
Thanks in advance ...

Plain text files contain text only -- no formatting information at all, including font selection. If you don't like Monaco, then change the Plain Text font in TextEdit Preferences.

Similar Messages

  • Having trouble saving txt files

    everythin's workin fine. but only a part of the txt file i have saved can be seen on my ipod nano......like the first 10 pages or somethin, the it wont scroll down....any help would be greatly appreciated guys

    Only the first 4000 characters of a note will be displayed on the iPod; either set it as a song lyric or use this form to split the note. An iPod will only list the first 1000 notes when a greater number is stored on it.
    (31913)

  • Saving Multiple files in RTF

    Does anyone know how to save multiple files in a book as RTF, other than saving each one individually? I have tried saving as a pdf and converting it but the formatting is never correct.
    I am using FM 9 on Windows 7.
    Thanks in anticipation.
    Stu

    Sheila,
    I did see that product recommended in another posting but wasn't sure if you could use it for multiple files or, as for FM, as a one at a time tool. I will download a demo and give it a go.
    Thanks.
    Stu

  • Store txt file to 2darray

    I make afunction that save a 2darray into atx using this code
        private boolean saveArray(File filename, double[][] output_veld) {
            try {
               PrintWriter out =
               new PrintWriter (new BufferedWriter (new FileWriter (filename)));
               out.print (Arrays.deepToString(output_veld));
               out.flush ();
               out.close ();
            catch (IOException e) {
               return false;
            return true;
    }I want to store again the data in txt file into the 2darray I tried this code
    public String readFile (File file) {
    double a [][] = new double [3][3];
        StringBuffer fileBuffer;
        String line;
        try {
          FileReader in = new FileReader (file);
          BufferedReader dis = new BufferedReader (in);
          fileBuffer = new StringBuffer () ;
          while ((line = dis.readLine ()) != null) {
                fileBuffer.append (line + "\n");
          in.close ();
          a =  the problem is here !! how I can insert the data on the array
        catch  (IOException e ) {
          return null;
        return fileString;
      }

    hi,
    I tried it like that ...
        boolean saveFile () {
          File file = null;
          JFileChooser fc = new JFileChooser ();
          fc.setCurrentDirectory (new File ("."));
          fc.setFileFilter (fJavaFilter);
          fc.setSelectedFile (fFile);
          int result = fc.showSaveDialog (this);
          if (result == JFileChooser.CANCEL_OPTION) {
              return true;
          } else if (result == JFileChooser.APPROVE_OPTION) {
              fFile = fc.getSelectedFile ();
              if (fFile.exists ()) {
                  int response = JOptionPane.showConfirmDialog (null,
                    "Overwrite existing file?","Confirm Overwrite",
                     JOptionPane.OK_CANCEL_OPTION,
                     JOptionPane.QUESTION_MESSAGE);
                  if (response == JOptionPane.CANCEL_OPTION) return false;
              String content = fFile.toString();
              return saveArray (content,drawLines1);
          } else {
            return false;
        public boolean saveArray(String filename, double[][] output_veld) {
                 try {
                    FileOutputStream fos = new FileOutputStream(filename);
                    ObjectOutputStream out = new ObjectOutputStream(fos);
                    out.writeObject(output_veld);
                    out.flush();
                    out.close();
                 catch (IOException e) {
                     System.out.println(e);
                     return false;
                  return true;
              }but when I opened the saved txt file I didnt get data I get some things liek that!!
    ? ur [[D?dgE  xp  ?ur [D>?cZ  xp   @V      @F      @g?     @[?     ?                       uq ~    @p?     @b     @w@     @m      ?                       uq ~    @{`     @u0     @{      @x0     ?                       uq ~    @s      @y      @j@     @u      ?                       uq ~    @uP     @r?     @|?     @p     ?                       uq ~    @     @b?     @sp     @O      ?                       uq ~    @n@     @f      @f      @p?     ?                       uq ~    @t      @w      @x?     @y`     ?                       uq ~    @y      @}?     @??     @v     ?                       uq ~    @?      @rP     @{?     @f`     ?                       uq ~    @a     @j`     @l      @q     @                      uq ~    @l      @q     @up     @g      @                      uq ~    @up     @g      @o      @|     @                      uq ~    @o      @|     @d      @t     @                      uq ~    @d      @t     @z      @q?     @                      uq ~    @z      @q?     @~     @f      @                      uq ~    @xp     @s      @rP     @xP     @                      uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~                                                            uq ~    

  • How do I save a file as an unformatted txt file instead of html or rtf?

    How do I save a file as an unformatted txt file instead of html or rtf?

    Use menu Image>Image Size in the image size dialog uncheck Resample and enter 300 in the resolution field and click OK.  Note no Pixels are changed only the resolution setting get changed.  The use Menu Fils>Save As in the save as dialog use the file type pull down and select Tiff then click Save
    In the Tiff Option Dialog in the Image Compression  section set None The click OK.

  • Saving a CSV report output as TXT file

    Hi,
    We are generating reports on the web using Intenet Explorer. The report is a CSV report, i.e. the data displayed is comma separated. After generating the report, we need to save it as TXT file.
    If the length of a line is long (let us say more than 80 chars) while saving it as TXT file, it is saving as 2 lines. If the length of a line is less, then it is saving in a single line.
    How can I avoid this 2 line problem?
    I am not facing this problem if I generate report with Netscape browser and save as TXT file.
    We are using Reports 6i.
    Thanks in Advance,
    Srinivas

    Hello,
    I had the same problem. And I think what I did to fix it is I made the mode=charcter, batch=yes, and background=yes. Hope this helps.
    Martin

  • Help needed saving text members to TAB delimited txt file

    I have 7 text memebrs each containing several lines of text
    that were pulled in and sorted from a TAB delimited text file.
    What I'd like to know is, is there any way to convert those
    text members back into the TAB delimited format from which they
    came? I'd like to be able to pull in the data, let it be edited to
    some extent, then saved back out..... and I'm not too sure how to
    go about it.
    Example of txt file:
    ID_No Name Age
    1 Phil 26
    2 Sam 34
    3 Mary 21
    They're then sorted in to text files of ID_No, Name, and Age,
    with the lists of the relevent items in each.
    Like.....
    ID_No
    1
    2
    3
    Name
    Phil
    Sam
    Mary
    Age
    26
    34
    21
    Certain lines of these text members change, depending on what
    the user selects. I'd like to put these sections back in their
    original TAB delimited format, but with any changed data replacing
    the old, so next ime the app is opened the new data is pulled in
    from the txt file.
    I know I'm probably going about this the wrong way, but it's
    the only way I know so far lol
    Any ideas?

    global filex, idlst, namelst, agelst
    on readtabline (str)
    tmpstr = ""
    y = 1
    repeat with x = 1 to the number of chars in str do
    if str.char[x] = tab then
    case y of
    1 : idlst.add (tmpstr)
    2 : namelst.add (tmpstr)
    3 : agelst.add (tmpstr)
    end case
    tmpstr = ""
    y = y + 1
    else
    tmpstr = tmpstr & str.char[x]
    end if
    end repeat
    agelst.add (tmpstr)
    end
    on exitFrame me
    idlst = [] --set up some lists to hold that data we read in
    namelst = []
    agelst = []
    filex = new (xtra "fileio")
    filex.openfile ("t.txt", 1)
    indata = filex.readfile() -- read the data in
    filex.closefile()
    filex = void
    repeat with x = 1 to the number of lines in indata do
    readtabline(indata.line[x]) --seprate it into its diffrent
    elements
    end repeat
    -- you now have your data sorted in to three list of id, age
    and name
    -- so you would now do what ever editing you wanted to do
    --now to write it out to a new file
    filex = new (xtra "fileio")
    filex.createfile (the moviepath & "tout.txt")
    filex.openfile (the moviepath & "tout.txt", 2)
    repeat with x = 1 to idlst.count() do
    filex.writestring (idlst[x] & tab & namelst[x] &
    tab & agelst[x] & return)
    end repeat
    filex.closefile()
    end
    I tested this on your exact scenario and it worked a brezze
    hope it helps
    Regards
    David

  • Remove control characters in txt file (saved from Excel)

    Hi,
    I have a txt file that contains invisible control characters and I want to remove those characters. I've been thinking of 2 options
    1/ Get the content of the file into a string, then go through each character and basically takes only alphanumeric, new lines, Alt+Enter character (character that is created in txt files in Excel that breaks line). With this approach, I'm stuck on getting the character code for Alt+Enter so if anyone could point out. That helps a great deal.
    2/ Use some pattern matching {ctrnl} or something to remove all control characters. I've tried this approach and it didn't work for me.
    Please help me with this problem. Any help or suggestion is greatly appreciated.

    (saved from Excel) Why not save it as csv?
    trivektor wrote:
    With this approach, I'm stuck on getting the character code for Alt+Enter so if anyone could point out. That helps a great deal.
    You can figure that out with a hex editor or just write a small app that prints int values for each byte, not character, and print the file.
    Presumably you already found the Character class and its methods.
    Edited by: jschell on Sep 22, 2008 4:29 PM

  • Saving and Loading variables in a .txt file (Offline)

    I'm working a software we've done with Flash, but we'd want
    people to be able to save the variables they selected. We need them
    to be able to save the value of about 10 variables in a file on
    their desktop, and then be able to load that file again.
    Is it possible to do that without having to use php or stuff
    like that (that's why we want to make it an offline applications so
    we don't have to use php to be able to save files).
    I know Actionscript looks a lot like Javascript and with
    Javascript it's really easy to do, but all the saving functions are
    blocked in Flash for security reasons.
    If anyone knows how to do that, to simply save and load a
    .txt file, please let me know. If it would be possible also to
    change the .txt to whatever else it would be even better. The file
    can still be opened in Notepad but at least it looks a bit more
    professionnal to have our own extension. Again in Javascript or
    with a .bat file it's really easy to save variables to whatever
    type of file, even to non existing types, it simply creates a text
    file with an unknown ending.
    Thanks!

    I found a page that explains in a really easy way how to
    communicate with Javascript if the flash object is contained in an
    html page, but I couldn't find any page explaining how it works if
    it's not in an html page. On our side, before using the software
    we're creating we'll convert it to a .exe. How can we call a
    Javascript from that .exe since we can't incorporate the Javascript
    in the container since there isn't really a container... Is there a
    way to link to a Javascript (.js) that would be in the same folder
    as the .exe? Or would there be a way to incorporate the Javascript
    right into the .exe?
    Let me know if any of you have a solution for that.
    Thanks!
    http://livedocs.adobe.com/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Liv eDocs_Parts&file=00000342.html#wp126566

  • RTF/txt file printing.

    Heya!
    It's been doing my head in trying to figure out how to print JasperReport labels on my Dymo LabelWriter. What i used to do is to export the report to PDF and print it. Issue i had with that is that it ignores font type/family completely. What i noticed is that RTF and txt-files keep the font.
    That threw me out on a journey to figure out how to print those. I've been through countless posts on the web, examples, forum posts, etc. All of them show some weird, useless to me scenarios that i couldn't even modify for my own use.
    What I'm really looking for is this:
    - A way to print .docx, .doc, .rtf or .txt file (physical file on a harddrive) to printer through Java code.
    Is it possible? Perhaps some free libs i didnt notice yet?
    Thanks in advance!

    Now this is "internets" and there is no way to tell the tone, but it just seemed that he went on "for hours" about how dumb i am and how i ignored the content of his post (which i didnt, it just wasnt 100% relevant), while one sentance was enough. Anyway....
    I did get it to print the .txt with BufferedReader (printing RTF was a failure, since it printed all the metadata with it, no surprise there).
    File txtFile = new File("label.txt");
    JRTextExporter txtExporter = new JRTextExporter();
    txtExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    txtExporter.setParameter(JRExporterParameter.OUTPUT_FILE, txtFile);
    txtExporter.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, new Float(6.55));//6.55 //6
    txtExporter.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new Float(11.9)); //11//10
    txtExporter.exportReport();
    There is also a JRPdfExporter and JRrtfExporter. PDF worked like a charm, except that it completely ignored the font i set in iReport (when i created the report structure).
    I use BufferedReader with JTextArea to print the contents of my .txt file for now (txtArea.print() ), and it works fine, just needs adjustments on the numbers in the code above. However, i need to nudge the frame a bit in the right direction. At the moment there is like a good 5 cm top and left whitespace to the label itself.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Framemaker 7.0 consistently crashes when saving files as .rtf (and other related issues)

    Thank you first of all for any help from anyone.  Secondly, I apologize for any of my FrameMaker naivety, I am just a beginner with it really.
    I am having a problem when saving out FrameMaker files to rtf format (for eventual conversion to word -- some people just want parts of book in word so they can mess around with it).  Frequently, framemaker crashes and gives me a message such as this below. What can I do to get our documents into word format?
    secondly, when i get them into word format, sometimes I have this problem when paragraph marks are turned on in word -- people that have recieved the word files I send them have complained about this and unfortunately they are people I cannot tell to just turn off the paragraph marks.  Why is that repeated text inserted into the line? It should just say "Removing Constraints" (with no parenthesis marks).  Some of our chapters are very long and manually removing this is not applicable.
    thanks for any help!

    About the {XE xxx} fields in your output file, that's the way FM converts index markers and their content when outputting RTF; FM automatically turns on the display of these fields. I believe it's the same with cross-references and all other kinds of marker output.
    With MIF2Go you can specify what to do with each different type of marker, so you could choose to delete them completely if you wanted, or else to retain the markers but convert them to the correct index references in RTF. Here's the section in the MIF2Go manual about the markers:
    http://www.omsys.com/dcl/usergd/rtfref_0120_5141_generating_an_index_in_word.htm#Xz105x557 827
    http://www.omsys.com/dcl/usergd/rtfref_0119_514_modifying_word_output_after_conversion.htm
    I'm not sure whether MIF2Go has a way to control the actual display of these fields in the RTF or not, or whether that would need to be done by a vbscript after the RTF has been generated.
    Sheila

  • Issue in .txt file saving from .xls to .txt

    Hi,
    I am downloading output in to excel sheet. when i am downloading excel data into tabdelimited.txt file i am getting '  "  ' in text file but in excel i am not getting this .
    anybody can tell me how to fix this issue. Initially i have to download the data into excel sheet only this is my requirement.
    Thanks,
    Maheedhar

    Hi,
    Excel normally does this if there is an embedded delimiter within the cell, i.e. a comma within the text and you are delimiting by a comma. Try using a TAB delimiter and you are less likely to see this.
    Darren

  • Reading and saving wave files as .txt

    I am a highschool senior working on a musical analysis problem. I am afraid my Java isn't all that great. The nitty-gritty is I need a squential representation of the ampiltudes of a sound file( .wav of course) at the frequency at which is was recorded. If I am not mistaken the advantage of the wave format is that it is just that a list of integers corresponding to the ampiltude of the sound file at the recording frequency. So my job is read the array of bytes in the sound file and write them to a .txt file so that I can run other programs which I have already gotten.
    I am currently trying to work with the Javax.sound.sampled API.
    My code sorta goes like this:
    public class analyse
    public analyse()
    AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile"));
    DataLine.Info info = new DataLine.Info(Clip.class, stream.getFormat(), ((int)stream.getFrameLength()*format.getFrameSize()));
    Clip clip = (Clip) AudioSystem.getLine(info);
    WriteArray();
    readArray();
    line.drain().stop();
    public writeArray() {
    int numRead = 0;
    byte[] buf = new byte[line.getBufferSize()];
    while ((numRead = stream.read(buf, 0, buf.length)) >= 0) {
    int offset = 0;
    while (offset < numRead) {
    offset += line.write(buf, offset, numRead-offset);
    I had a friend suggest something like that and That wa just the bare bones of the program. readArray() would of course take the array and, using an iterator, write it to a text file.
    However, I've also come across this code while looking thru the API
    AudioInputStream stream = AudioSystem.getAudioInputStream(new File("audiofile"));
    stream.read(byte[] b, int 0, int stream.frameLength()*stream.frameSize());
    this I actually understand better, but I cannot get it to work.
    If anyone could help me with this, I would sorely appreciate it.

    Do you have QuickTime Pro? What "audio file" types are you referring to - MP3, WAV?

  • Dynamic Text with external .txt files

    I need help getting dynamic text to display. I've used the
    following tutorials (among others).
    http://www.kirupa.com/developer/mx/dynamic_scroller.htm
    http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
    In Flash 8 on last frame of maintimeline of movie, I have a
    layer with a background image, 2 buttons and a dynamic textbox
    (made scrollable) with scrollbar component. Textbox is given a var
    of "content", and an instance name of "textBox", which is
    referenced in scrollbar parameters.
    I have created 3 text .txt files, and saved them to same
    folder with movie .swf file. Text in files is preceeded by
    "content=" on line preceeding text to correspond with var of
    dynamic textbox. The files were created in Rich text format on Mac
    OSX4.11 and saved with .rtf extension, then file extension was
    changed to .txt (wouldn't save as .txt)
    I've added the following actionscript to this last frame:
    loadText = new LoadVars();
    loadText.load("TEXTintro.txt");
    //creating the loadVarsText function
    loadText.onLoad = function(success){
    if (success){
    textBox.text = this.content;
    else{
    trace("Error loading external content");
    Buttons have an instance name assigned with the following
    actionscript:
    on (release) {
    loadText = new LoadVars();
    loadText.load("TEXT1.txt");
    loadText.onLoad = function(success){
    if (success){
    textBox.text = this.content;
    else{
    trace("Error loading external content");
    When I test movie, I can see buttons on last frame of movie,
    but they don't load any text when pressed, and "undefined" text
    appears in upper left corner of text box before I press either
    button.
    I am getting the following Output errors:
    **Error** Scene=MoonOfWintertime, layer=TextBox,
    frame=2500:Line 1: Statement block must be terminated by '}'
    on (release) {
    **Error** Scene=MoonOfWintertime, layer=TextBox,
    frame=2500:Line 11: Syntax error.
    **Error** Scene=MoonOfWintertime, layer=TextBox,
    frame=2500:Line 1: Statement block must be terminated by '}'
    on (release) {
    **Error** Scene=MoonOfWintertime, layer=TextBox,
    frame=2500:Line 11: Syntax error.
    Total ActionScript Errors: 4 Reported Errors: 4

    No more output errors, buttons still not working, but I got
    my intro .txt file to load in textbox that loads with frame using
    the following code I tried from another tutorial:
    loadText = new LoadVars();
    loadText.onLoad = function() {
    textBox.html=true;
    textBox.htmlText = this.textContent;
    loadText.load("TEXTintro.txt");
    Tried the following code with buttons, but doesn't work.
    Other code suggestions?
    on (release) {
    loadText = new LoadVars();
    loadText.onLoad = function() {
    loadText.load("TEXT2.txt");
    on (release) {
    loadText = new LoadVars();
    loadText.onLoad = function() {
    textBox.html=true;
    textBox.htmlText = this.textContent;
    loadText.load("TEXT1.txt");
    }

  • Accessing txt file in executable vi

    Hi,
    I have built a user interface for a project im working on. The data entered by the user on the interface is saved in a text file upon closing of the program. This is currently working fine but when I create an executable of my code, data is not written to the txt file upon closing. Is there some special way to build these types of VIs,
    The code for writing to the file is in a sub VI and i use the "Write to spreadsheet file" function, i pass in the reference of "C:\Documents and Settings\asha264\Desktop\Single Line\Single Line (9.0)\Data.txt".
    Thanking You,
    Adnan Sharief
    Solved!
    Go to Solution.

    Make sure that your means for signalling the other vi's to exit doesn't have an inadvertent race condition. Remember that LabVIEW is data flow language, that to make sure that certain events occur in a certain order that there is a signal dependecy to force the order of execution. I got bit by that recently when we used a functional global to signal all of the various programmatic loops in the various vi's when it was time to shut down. There was at least one place where, under certain conditions, the loop stop terminal was getting the signal before the "stuff" in the loop had executed. Putting an error in/out on the FG, then puting it in the error line after the functions (actually file writing) guaranteed that the file writes would occur before the "exit" condition was evaluated.
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

Maybe you are looking for

  • How do i make my iMAC discoverable by the smart TV on my home network

    Having upgraded from a PC to an iMAC my Sony Bravia TV does not find the iMAC on my home network. Previously my PC on the network was recognised enabling me to view JPEG and video files on the TV. How do I now make my iMAC discoverable?

  • Setup windows XP on a Portege 2000, with no external drives

    I recently became i happy owner of a Portege 2000 which was given to me for free(?!) from a family member that doesn't use it anymore. When i first held it i felt impressed! Its so light and so beautiful. It came with Windows 2000, which crashed afte

  • Exported photos from Lightroom 4 to my Iphoto are not the edited.

    Hi ! I',m in real trouble here. I've just edited my recent vacation photos to Lightroom and exported to my computer. Looking at the pictures i've noticed that are the original, not the edited versions. Decided to do it all again, but took the wrong d

  • Does imovie support tod files?

    Help .. I can not find anywhere i have looked so far on what files are supported in imovie???  I thought it would be a easy task.....

  • Error Installing iTunes 7

    iTunes 7 downloads good, but when I try to install it a window pops up and says "The Folder Path 'Documents and Settings/Jacob' contains an invalid character". Does anyone know how to resolve this problem?