Is it posible to save windows-txt as UNIX-txt?

I want to be able to save a text file i have produced in a Window environment, as a UNIX text file. Has anyone done this and can help? As I understand, UNIX and Windows use different end-of-line and end-of-file characters.
Regards Jens

The line separator for UNIX is \n, and for Windows it is '\r\n' (or \n\r, not sure, and don't care).
If you have a '\n' character in a string and you write that string to a file, the character will still be a '\n' regardless of the platform. The only time that java inserts the proper line terminator for the platform is when you use the println methods of the PrintWriter and PrintStream classes. All you have to do is avoid those methods, and explicitly print '\n' at the end of all of your lines.

Similar Messages

  • Can no longer print from an internet website, SAVE window pops up

    Computor will not print from a website eg: recipes, bank statements, etc. Instead, a Save window pops up. Have tried saving to Desktop, but then can't find document, or can't open doc.
    How to get back to just be able to print from web.

    The Airport is connected to a DLink DGL-4100 router which is connected to a cable modem.
    With the AirPort Express Base Station (AX) connected directly to the upstream D-Link router by Ethernet, I assume that you have the AX reconfigured as a bridge, i.e., Connection Sharing = Off (Bridge Mode) ... correct?

  • How to save a value in a .txt n retrive back the exact value from the file?

    Well I have a number. Let's say 600. I need to save this value in a .txt file so that I can retrive this value. I tried using the below source code. It can be executed but I'll get num 49 everytime I execute it even though the value in my .txt is 600.
    try {
                   File inputFile = new File("Lt.txt");
                   File outputFile = new File("outagain.txt");
    FileReader in = new FileReader("Lt.txt");
    FileWriter out = new FileWriter(outputFile);
    int c;
              c = in.read();
              in.close();
    System.out.print("\nggggggggg"+c);
    in.close();
                   } catch (IOException ex) {
                   System.out.println("IOException:"+ex.toString());

    Thank you. I execute the program below. I can now retrive the data from the Lt.txt. But the value is limited to 3 digits. For example, the content of my file is 777888.
    When I run the program, I only get 777. How can I retrive the whole exact number?               
    import java.io.*;
                   class Test {     
                   public static void main(String args[]) {          
                   try {               
                   File inputFile = new File("Lt.txt");               
                   File outputFile = new File("outagain.txt");                    
                   FileReader in = new FileReader("Lt.txt");               
                   FileWriter out = new FileWriter(outputFile);               
                   char[] tmp = new char[3];               
                   int cnt = in.read(tmp);                              
                   System.out.print("\nRead: ");               
                   for (int i = 0; i < cnt; i++) {                    
                   System.out.print(tmp);               }               
                   System.out.println(" ");               
                   in.close();          }
                   catch (IOException ex) {               
                   System.out.println("IOException:"+ex.toString());          }     }}

  • How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    Question
    How do you get firefox 4 to save tabs and windows and restore them? Don't say set preferences to open them on startup or use restore previous session under history; those do not work. Or is it no longer possible to save windows and tabs?

    '''IT'S A EASY AS IT SHOULD BE.'''
    This is essentially paulbruster's answer, but I've added the steps some might assume, but which aren't so obvious to those of us who are new at this, like me.
    This solution might ''appear'' to be long and complicated, but after you follow the directions once, you'll find it's quick, clean, and simple. Almost like they designed it this way.
    # If you haven't already, open a bunch of tabs on a few different subjects.
    # Click the List All Tabs button on the right side of the tab strip.
    # Select Tab Groups.
    # Create a few groups as described [http://support.mozilla.com/en-US/kb/what-are-tab-groups#w_how-do-i-create-a-tab-group here] , i.e. just drag them out of the main thumbnail group into the new groups they create.
    # Now click on any thumbnail in any new group, but not the original big default group you may have left some tabs in.
    #A regular Firefox window will open, but'' only the tabs in that group will be visible.'' You also now have the Tab Groups button in the tab strip.
    # Right click on any tab, and there it is: Bookmark All Tabs. Click on it in the list of options. Or you can hit Ctrl+Shift+D instead and go straight to the dialogue box from the tab without any clicks. But don't go looking for this familiar option anywhere else, 'cause it's not there.
    # Now pick an existing folder or create a new one just like you would have before and '''shlpam!''' there they are. New folders are supposed to end up in the Unsorted category all the way at the very bottom, but for some reason mine show up at the bottom of my last sorted category.
    # DO NOT CLICK THE UPPER-RIGHTMOST X to close this group of tabs. This will close ALL of your tabs in all groups, currently visible or not. At least it asks if you're sure first. Instead, click your new Tab Groups button to return to the Boxes 'O Thumbnails window, and click the X in the group box you just bookmarked.
    # Click on another thumbnail to repeat the process with another group, or click on a thumbnail in the big default box to return to the original FF window. You can also click the Tab Groups button at the upper right, or Ctrl+Shift+E, which will also get you ''into'' the Boxes 'O Nails window ''from'' FF.
    # So now when you reopen FF after shutdown, simply select your folder from your Bookmarks and Open All in Tabs. '''Just like paulbruster said. '''

  • Automatically save logging in the "flashlog.txt" file

    Is there a way to automatically save logging in the "flashlog.txt" file?

    hi Atish
    i am using
    loop at gt_sagadr_outtab into wa_sagadr_outtab
    move wa_sagadr_outtab-country to wa_sagadr_text+223(226).
    endloop
    in this last field ie country i need to display the last 226 as blank as only country key is two char in database so the last space is not shown
    i am not unsing the fM as tolb by  you
    and afterwards
    i am usning
    Concatenate 'Sagadr_' sy-datum sy-uzeit '.dat' into gv_filename_sagadr.
    CALL FUNCTION 'FILE_GET_NAME'
      EXPORTING
      CLIENT                        = SY-MANDT
        LOGICAL_FILENAME              = gc_lfile
        OPERATING_SYSTEM              = SY-OPSYS
        PARAMETER_1                   = gc_param1
        PARAMETER_2                   = gc_send
        PARAMETER_3                   = gv_filename_sagadr
      USE_PRESENTATION_SERVER       = ' '
      WITH_FILE_EXTENSION           = ' '
      USE_BUFFER                    = ' '
      ELEMINATE_BLANKS              = 'X'
      IMPORTING
      EMERGENCY_FLAG                =
      FILE_FORMAT                   =
        FILE_NAME                     =  gv_filepath_sagadr
    EXCEPTIONS
      FILE_NOT_FOUND                = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    and lastly
    open dataset gv_filepath_sagadr for output in text mode encoding default.
        if sy-subrc eq 0.
         loop at gt_sagadr_text into wa_sagadr_text.
         transfer wa_sagadr_text to gv_filepath_sagadr.
         endloop.
        endif.
       close dataset gv_filepath_sagadr.
        if sy-subrc = 0.
        message S002 with gv_filepath_sagadr. "Files & created on Application server
        endif.
    SO NOT SURE WHERE TO USE THE CODE AND HOW

  • Save a waveform in a txt file

    Hello,
    I just want to save a waveform in a txt file in the simple format : Time (s)[tabulation]Current (A) instead of the labview preformatted spredsheat format time[tabulation] Y
    1904-01-01  01:00:00.000000 0.000335  0  

    Please keep to your original thread, otherwise the information gets scattered and the forum poluted.
    Regards,
    André
    Using whatever version of LV the customer requires. (LV5.1-LV2012) (www.carya.nl)

  • InDesign 'save' window closes every time I try to save

    I am running InDesign CC and am having a problem saving. Whenever I try to save any document, the save window opens, then closes as soon as I click the text box or even try to click on a folder/ place to save the document. The program does not crash, just the save window so I am not able to save the document.
    I am running the most recent version of CC on Mac.
    Does anybody know how to remedy this?

    Ensure your InDesign CC is fully up-to-date.
    Try resetting your Application Preferences.
    http://forums.adobe.com/thread/526990

  • When I click PRINT for a PDF file, a window pops up asking me to "save the file as" an xxps doc.. The page dows not print even if I click save. I do not want this "save" window will not printh

    How can I eliminate this seemingly automatic "save" window. Just want to print the pdf.
    THANK YOU!

    Deleted it, restarted it. tried it again. no change. repeated the whole cycle. no change. thinking about uninstalling and reinstalling, but that won't reallyk change the settings.

  • Neither hard drives appear on desktop or sidebar or in a save window

    My G5 Quad has two hard drives. Tiger is on one and Leopard is on the other. Everything seems to be functioning properly but the drives don't show on the desktop, in the side bars, in the Finder>GO, or in save windows whether I have started up in Leopard or Tiger. They do show up in Disk Utility and I have verified both drives. They also show up in System preferences, Startup Disk. I've also checked that show hard drives is checked in the Finder Preferences. Somewhere I found a buunch of commands to type into Terminal to fix it, but I'm afraid of trying, doing something I don't understand and besides I can't find the article again. Any suggestions?

    go to finder, hit command-, (that's "comma"), go to the General tab, select "Hard Drives" tick box under "show these items on the desktop". Try unchecking the box, then control clicking (right click) on finder in the dock and selecting "relaunch". Then check the box again. Then control click on the desktop and select "Clean Up".
    Are you using multiple displays?
    Go into Displays preferences and change the resolution of your screen to something else... it may be that the icon just got "off the screen" somehow.
    For a finder window sidebar:
    open a new finder window.
    while holding down the command key, click on the "Title" of the folder you are currently viewing. For example if I'm looking at my "Home" folder, I would click where it gives my user name (while holding command of course). Select the item ALL the way at the BOTTOM of the list (it should read the name of your computer, possibly "Bilbo's PowerMac G5", or some such.
    :You should see a list of all the drives, optical media, and network volumes on your computer. Drag the icon of the Hard Drives you want +in the+ sidebar *to the* sidebar from the main/viewing portion of the window.
    Hope this is what you were asking for...
    Message was edited by: 1984-IWas1
    Message was edited by: 1984-IWas1

  • "bookmark save" window options

    In and older version of firefox, I had the luxury of elongating and widening the "bookmark save" window at any time to the full length of my screen so I could rapidly view and select from one of the hundreds of research and knowledge base categories I normally choose from. Secondly, I was able to intermittently and permanently move this window whenever and wherever I wanted so I could move it out of the way to see an important hidden document title or story title on the page". Finally, each of the above two options interacted with the last option which allowed me to create an alternative subject title other than the one offered by default, wherein I could scroll to any part of the page where the actual title or parts of the story line were so I could either type or cut and paste words to create the title, all while the window remained open. All three of these options disappeared, and I used them 99- 100% of the time. Is there an add-on that brings these back.

    That moveable Add Bookmark window died with Firefox 2 versions. That part of your feature descriptions hasn't duplicated by any extension that I have seen for a Firefox 3+ version, but the other two features are in this extension. <br />
    Add Bookmark Here ² : <br />
    https://addons.mozilla.org/en-US/firefox/addon/3880
    Use the "+" symbol in the lower-left corner to drag that "Page Bookmarked" window down to make it larger. That resizing will hold for the next time that dialog is opened.

  • Save window starting point

    hi all,
    In 10.4, in the save window, when in column view, it would be possible to scroll back all the way to the root of the disk you where trying to save on.
    but in 10.5, you are stuck at the the location of the last save. if you want to go back one folder(or more), you have to use the drop down menu at the top of the window, and it very time consuming. i was wondering if there is a way to have that setting back like it was in 10.4
    here you can see on the picture what i'm talking about.
    any help would appreciated.
    !http://temp.9ieme.com/Picture_1.png!

    You're original post wanted to go back to the root volume. For your new requirements, add the paths to Places. BTW, I've disabled the sidebar as I find it virtually useless, so I'm just guessing that you can do that via Finder->Preferences->Sidebar.

  • Logic x save window so slow when saving from templates

    Anyone else having problems with the save window that pops up when you create a new session from the templates?
    Mine is super slow

    mccello wrote:
    Are Apple developers reading these discussions here?
    Do they have official moderators who chime in and give us useful hints like many other software companies?
    Or are we users alone in the dark?
    No... No.... and Yes.... because this is a User run community... The occasional input may be given by Apple employees but they are almost always not Logic Pro trained employees.. more the general tech support type... answering questions in a very general manner...
    Please read the following....
    https://discussions.apple.com/docs/DOC-5671
    If you are interested in getting more info about developments... Sign up with the Developers forums...
    https://developer.apple.com
    Cheers...
    Nigel

  • Energy saver window won't open

    Since installing Leopard, I can't open the energy saver window of the system preferences. All the other system preference windows are OK. I've reinstalled 10.5.1, trashed the .plist in systempreferences. Thanks to Macjack for your help. Thanks for any further help.

    Thanks. This was found in console (shows up each time I click on the energy saver icon in system preferences):
    11/26/07 12:59:34 PM System Preferences[1264] * -[NSCFString unsignedIntValue]: unrecognized selector sent to instance 0xa0a2a6b4

  • Save window runs off bottom of screen in Numbers

    I just installed iWork 09 a few days ago, and I've been having a problem when saving in Numbers. The Save window runs off the bottom of the screen, and I have no idea how to make it smaller so I can actually see the Save and Cancel buttons.
    Any ideas?

    Hi,
    Welcome to the Numbers discussion. This has been reported before and usually is the result of changing the screen resolution in System Preferences, effectively making the viewing area smaller. If any of this sounds familiar to you, you can go back to System Preferences > Hardware > Display and set the resolution to the highest possible setting. Now your whole Save panel should be visible in Numbers. You can make the Save panel smaller by grabbing the sizing handle in the lower right corner. Then if you decide to go back to System Preferences and lower your screen resolution back down, your Save panel is less likely to extend beyond the screen.
    Jerry

  • Size of 'open/save' window-box

    For some reason the size of my 'open/save' window boxes have become full-screen in size.  How can I change it back to small window-boxes, please? Thanks!

    That silly business where windows "snap" to the bounds of the display can be disabled, by the way.
    Excerpted from my book Configure The Windows 7 "To Work" Options.  I've emphasiszed the setting you may want to change in color here:
    Configure the New Aero Accessibility Enhancements
    Windows 7 introduced some new features to help you arrange your windows on screen.  Some people like being able to maximize a window by dragging it to the top edge of the screen, or maybe tile windows side by side by dragging them to the right and left edges.  
    You can also enable Sticky Keys by holding down the Num Lock key.  Trouble is, it's possible you might do that accidentally - this can be confusing if you don't expect it.
    Microsoft considers these Accessibility Enhancements, and they're on by default.
    If you're like us, these things just seem distracting. 
    The good news is that you can turn these things off:
    Click Start, type ease in the search box, and open the Ease of Access Center.
    Click Make it Easier to Focus on Tasks (you may have to make the window larger and/or scroll down).
    Uncheck [  ] Turn on Toggle Keys by holding down the NUM LOCK key for 5 seconds.
    Check [  ] Prevent windows from being automatically arranged when moved to the edge.
    Review the other settings while you're here.
    -Noel

Maybe you are looking for

  • Population of a dropdown based on another dropdown selection

    Hi, I'm trying to develop a form in which a secondary dropdown is populated based on a selection from a primary dropdown. The idea behind this is as follows The first dropdown is bound to a database. From this dropdown a user would select a project.

  • Commitment Item Change in Purchase Requisition

    Hi All , I want to change the commitment Item in the Purchase Requisition at the change of Material Group in the PR . I tried all the Exits and BADI but its not working  . Can any body suggest some  , how to do this ??? Thanks n Regards Manik L Dhaka

  • Converting VCRs to DVDs

    I have a Mac Pro Quad with the updgraded video card (ATI 1600)and it has iMovie on it. I have about 6 or 7 old family VCRs that I would like to convert to DVDs. I don't need pristine quality...just OK would be fine. What hardware/software to I need t

  • DV4170US - new battery not charging

    My first battery had progressively shorter battery life, so I replaced it with an after-market battery.  That worked for over a year.  Then, it wouldn't charge.  I was able to use the laptop with the charger attached, but the battery would not charge

  • Retrieving polices or error in validations

    Hi Guys, We are trying to call a SOAP enabled Webservice with the policy - oracle/wss_username_token_client_policy from a webcenter portal application . I am successfully consume the webservice in my local System with Weblogic Version: 10.3.5.0 When