Windows newlines on files

Hi all you there.
my question is this, windows newlines and unix newlines are recognized diferent by the many editors, and platforms, windows notepad does not recognize unix newlines so when you try to open a file a mess is displayed, i've seen that you can change the java encoding so you can save files with the microsoft windows standart characters.
any one can help me ?
thanks in advanced =)
regards.

It has nothing to do with encoding.
There's a System property--line.separator--that determines what to use. It's used when you to println on a PrintWriter, for intsance. If you're running on windows, then when you create a file, it will have a windows line terminator. You might be able to explicitly set line.separator, or to set something in the Writer object, to cause it to use a different line terminator than whatever the default is for the system on which you're running.
Normally one doesn't worry about it. You just write in whatever is appropriate for the platform on which you're running, and then either use something like FTP to make the change on the fly as you transfer it to another system, or use an editor that can interpret the various line terminators.
If you're running on unix or mac and you know you're going to be opening the file with windows, then you might want to look into explicitly setting the line terminator.

Similar Messages

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • How can I create a pop up window for a Windows Media video file in Dreamweaver CS6?

    I have a Windows Media video file on my homepage that plays automatically when you go to the website. I'd like to change my homepage. I now would like to place text that says "click here to play the video" and I'd like a pop up window to open and play the video. I'm using Dreamweaver CS6. Your help will be appreciated. Thanks.

    BlueSapphire777 wrote:
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    Is the code you told me about (above), is it necessary for older browsers such as ie8? I thought you were saying it was for the HTML5 tags and I wasn't sure I'd bother with it. If it helps people with ie8, I probably should add it.
    I include it (or a link to a localized copy of the file) by default now.
    To truly support the ancient browsers out there, you'd likely need something like...
    <video width="500" height="500">
        <source src="video.mp4" type="video/mp4" />
        <source src="video.ogv" type="video/ogg" />
        <source src="video.webm" type="video/webm" />
        <object width="500" height="500">
        <param name="movie" value="video.swf" />
        <embed src="video.swf" width="500" height="500"></embed>
        </object>
    </video>
    I don't bother with a Flash fall back for old browsers though. I just put in text letting the viewer know they're behind the times pretty severely, like...
    <video width="500" height="500">
        <source src="video.mp4" type="video/mp4" />
        <source src="video.ogv" type="video/ogg" />
        <source src="video.webm" type="video/webm" />
        <p>Your browser is horribly, helplessly and hilariously outdated. Visit <a href="firefox.com" target="_blank">www.firefox.com</a> to download something better, more secure, modern, worthwhile, etc, etc...</p>
    </video>
    For junky old browsers that can't see any HTML5 (which the <video> and <audio> tags are), they get a text message to get something better and a link to go there.

  • __ Is there a way to open an .emf (Windows Enhanced Meta File) file in Ai?

    __ Is there a way to open an .emf (Windows Enhanced Meta File) file in Ai?
    I was given several Nutrition Facts tables to use in my package design - I don't want to redraw them or guess at the size.
    Thanks

    Thanks for your help Kurt, but the main problem is that I don't see an Upload button (I read about it in the Help file as well) - I see "+You/Mail/Caledar/Documents/Photos?Sites/Search/More" and
    "Docs/Create/Home/Starred/Owned by me/All items/Bin" etc. but no 'Upload' !
    - OH WAIT A MINUTE - I JUST MOUSED OVER IT - THERE IT IS! I FEEL REALLY DUMB NOW! 
    Here's the link:  https://docs.google.com/open?id=0B9cv3o9-NLCfZTNiM2JlNWUtYjQxOS00NWUxLWJjYjAtYmM1NjhiMjA1Z mMw

  • Windows 7 install hangs at "Windows is loading files ..." on MBA

    I have been trying to install Windows 7 Ultimate but each time the install hangs at "Windows is loading files ..." on reboot. I am using a Windows install DVD using an external drive. When the install hangs, the DVD is not being accessed. I have tried several times and it leads to the same result. I have tried different partition sizes (20 GB - 50 GB), no luck.
    Any help would be greatly appreciated.

    Solution
    I have a macmini bought in mid2011 with OS Lion on it. AS it doesnot come with an optical drive, I bought an LG DVD drive and used the windows 7 (64bit) installation DVD. It stopped at windows is loading files....
    I tired couple of other options like using flash dirve but it dint work.
    The I went to Apple's Genius Bar, and they put the installation dvd into their dvd drive (by Apple). Then the windows installed perfectly fine.
    When asked they said it must be the problem of DVD and I found out that it actually is the cause. Apple products require dual layer optical drives but in general the optical drives we buy can only read single layer dvds. So I got to fix the problem by borrowing their dvd drive in genius bar and now i m good to go.....
    Hope this helps

  • Where can I find Windows 7 support files for Mac?

    While in the process of creating a partition with Boot Camp, I was unable to download the Windows 7 support files.  Is there a link to someplace I can get them elsewhere?  Will Windows 7 work in Boot Camp without them?  Thanks!
    Daniell

    Oh, okay.  I was hoping they were available somewhere online since I'm having such difficulty downloading them through the Boot Camp Assistant.  Thanks anyway. 
    Daniell

  • I am trying to reinstall Windows on my macbook pro.  I downloaded the support files and Windows 7 iso file to a USB drive.  However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode."

    I am trying to reinstall Windows (would not launch).  I removed the partition and started over.  I downloaded the support files and Windows 7 iso file to a USB drive.  However, when I try to run the setup.exe program I get the message "this program cannot be run in DOS mode."  I was successful before, what am I doing wrong this time?

    Try a restart.
    If that doesn't fix the problem, shut down the computer and then power it back up. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application unistaller. For each disable/delete, you will need to restart if you don't do them all at once.
    Safe Mode
    Safe Mode - About
    General information.
    Isolating issues in Mac OS X
    Troubleshooting Permission Issues
    Step by Step to Fix Your Mac

  • Computer will not boot up on usb cd rom to repair windows problem (corrupt file) what should i do

    computer will not boot up on usb cd rom to repair windows problem (corrupt file) what should i do

    Which computer? Which Windows?
    What are you trying to do?
    -Jerry

  • Viewing DNG's in Windows 8.1 file explorer as image thumbnails ... how to do this?

    Does anyone know why you can't view .dng RAW files as image thumbnails in Windows 8.1  file explorer even with the Microsoft Camera Codec Pack installed.
    Other RAW files show up as thumbnails no problem (e.g. Nikon .NEF files). I could view dng's as thumbnails in Windows 7 but not with Windows 8.1. Perhaps Adobe hasn't shared the appropriate info. for Microsoft to make it happen?
    Cheers if you know how to see the dng thumbnails and can help me do the same.
    Michael

    I know the DNG Codec for Windows 7 allowed one to view DNG thumbs in Win 7. Wouldn't it work for Windows 8.1 too?

  • It's not just Download Helper v4.8.3, it's also RealPlayer: the download display window shows .mp3 files downloading, but nothing shows in the folder when it is done downloading.

    # Question
    It's not just Download Helper v4.8.3, it's also RealPlayer: the download display window shows .mp3 files downloading, but nothing shows in the folder when it is done downloading.
    Also in the '''Properties''' window of Windows Explorer I '''no longer have the Details tab''', so I can't update my mp3 files with Artist, Album, Genre, etc. But the details tab does show up when I access it thru Windows Explorer.
    I ran the AVG rescue disc an no viruses found. Now on '''FF3.6.15''' '''RealPlayer''' shows when I right click but then '''immediately disappears and an icon appears in the System Tray''', but as soon '''as I hover my mouse over it it disappears'''.
    Does anyone have any ideas or suggestions?
    How can I get this fixed? I have time-sensitive mp3s that I won't have access to anymore if I don't get this resolved in a hurry. (no pressure on you, I'm the one that's stressed about this) Can you help? Thanks so much for responding to this '''inquiry.''''''bold text'''

    See:
    *https://support.mozilla.com/kb/Downloads+window
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember download history"

  • Unable to install SQL 2005 Service Pack 3 (Unable to install Windows Installer MSI file)

    I'm unable to install SQL 2005 Service Pack 3. This results in the following error message: Unable to install Windows Installer MSI file.
    Could someone please help me. Thanks in advance!
    === Verbose logging started: 3-4-2009  9:33:00  Build type: SHIP UNICODE 4.05.6001.00  Calling process: d:\5ddfa356349ddf2e676c336d95c5\hotfix.exe ===
    MSI (c) (E0:88) [09:33:00:404]: Resetting cached policy values
    MSI (c) (E0:88) [09:33:00:404]: Machine policy value 'Debug' is 0
    MSI (c) (E0:88) [09:33:00:404]: ******* RunEngine:
               ******* Product: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi
               ******* Action:
               ******* CommandLine: **********
    MSI (c) (E0:88) [09:33:00:404]: Client-side and UI is none or basic: Running entire install on the server.
    MSI (c) (E0:88) [09:33:00:404]: Grabbed execution mutex.
    MSI (c) (E0:88) [09:33:00:419]: Cloaking enabled.
    MSI (c) (E0:88) [09:33:00:419]: Attempting to enable all disabled privileges before calling Install on Server
    MSI (c) (E0:88) [09:33:00:419]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (28:28) [09:33:01:747]: Running installation inside multi-package transaction C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi
    MSI (s) (28:28) [09:33:01:747]: Grabbed execution mutex.
    MSI (s) (28:CC) [09:33:02:029]: Resetting cached policy values
    MSI (s) (28:CC) [09:33:02:029]: Machine policy value 'Debug' is 0
    MSI (s) (28:CC) [09:33:02:029]: ******* RunEngine:
               ******* Product: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi
               ******* Action:
               ******* CommandLine: **********
    MSI (s) (28:CC) [09:33:02:685]: Machine policy value 'DisableUserInstalls' is 0
    MSI (s) (28:CC) [09:33:03:450]: File will have security applied from OpCode.
    MSI (s) (28:CC) [09:33:03:841]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi' against software restriction policy
    MSI (s) (28:CC) [09:33:03:841]: SOFTWARE RESTRICTION POLICY: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi has a digital signature
    MSI (s) (28:CC) [09:33:04:841]: SOFTWARE RESTRICTION POLICY: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi is permitted to run at the 'unrestricted' authorization level.
    MSI (s) (28:CC) [09:33:04:888]: End dialog not enabled
    MSI (s) (28:CC) [09:33:04:888]: Original package ==> C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi
    MSI (s) (28:CC) [09:33:04:888]: Package we're running from ==> C:\WINDOWS\Installer\3d3a713.msi
    MSI (s) (28:CC) [09:33:05:497]: APPCOMPAT: looking for appcompat database entry with ProductCode '{53F5C3EE-05ED-4830-994B-50B2F0D50FCE}'.
    MSI (s) (28:CC) [09:33:05:497]: APPCOMPAT: no matching ProductCode found in database.
    MSI (s) (28:CC) [09:33:05:685]: MSCOREE not loaded loading copy from system32
    MSI (s) (28:CC) [09:33:05:825]: Note: 1: 2203 2: C:\WINDOWS\Installer\2f1994e.msi 3: -2147287038
    MSI (s) (28:CC) [09:33:05:825]: Opening existing patch 'C:\WINDOWS\Installer\e6ba0.msp'.
    MSI (s) (28:CC) [09:33:05:825]: Note: 1: 2203 2: C:\WINDOWS\Installer\e6ba0.msp 3: -2147287038
    MSI (s) (28:CC) [09:33:05:825]: Couldn't find local patch 'C:\WINDOWS\Installer\e6ba0.msp'. Looking for it at its source.
    MSI (s) (28:CC) [09:33:05:825]: Resolving Patch source.
    MSI (s) (28:CC) [09:33:05:825]: User policy value 'SearchOrder' is 'nmu'
    MSI (s) (28:CC) [09:33:05:825]: User policy value 'DisableMedia' is 0
    MSI (s) (28:CC) [09:33:05:825]: Machine policy value 'AllowLockdownMedia' is 0
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Media enabled only if package is safe.
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Looking for sourcelist for product {EE92F683-5F5C-4970-BB0B-9AC591B60268}
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Adding {EE92F683-5F5C-4970-BB0B-9AC591B60268}; to potential sourcelist list (pcode;disk;relpath).
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Now checking product {EE92F683-5F5C-4970-BB0B-9AC591B60268}
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Media is enabled for product.
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
    MSI (s) (28:CC) [09:33:05:825]: SOURCEMGMT: Trying source \\NF04\d$\3db7739bf5c1bb9c50076c418420\HotFixSqlSupport\Files\.
    MSI (s) (28:CC) [09:33:06:607]: Note: 1: 2203 2: \\NF04\d$\3db7739bf5c1bb9c50076c418420\HotFixSqlSupport\Files\SqlSupport.msp 3: -2147287037
    MSI (s) (28:CC) [09:33:06:607]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
    MSI (s) (28:CC) [09:33:06:607]: Note: 1: 1706 2: -2147483647 3: SqlSupport.msp
    MSI (s) (28:CC) [09:33:06:607]: SOURCEMGMT: Processing net source list.
    MSI (s) (28:CC) [09:33:06:607]: Note: 1: 1706 2: -2147483647 3: SqlSupport.msp
    MSI (s) (28:CC) [09:33:06:607]: SOURCEMGMT: Processing media source list.
    MSI (s) (28:CC) [09:33:07:654]: SOURCEMGMT: Resolved source to: 'SqlSupport.msp'
    MSI (s) (28:CC) [09:33:37:732]: Note: 1: 1314 2: SqlSupport.msp
    MSI (s) (28:CC) [09:33:37:732]: Unable to create a temp copy of patch 'SqlSupport.msp'.
    MSI (s) (28:CC) [09:33:37:732]: Searching provided command line patches for patch code {EE92F683-5F5C-4970-BB0B-9AC591B60268}
    MSI (s) (28:CC) [09:33:37:763]: Note: 1: 1708
    MSI (s) (28:CC) [09:33:37:763]: Product: Microsoft SQL Server Setup Support Files (English) -- Installation failed.
    MSI (s) (28:CC) [09:33:37:763]: Windows Installer installed the product. Product Name: Microsoft SQL Server Setup Support Files (English). Product Version: 9.00.4035.00. Product Language: 1033. Installation success or error status: 1635.
    MSI (s) (28:CC) [09:33:37:779]: MainEngineThread is returning 1635
    MSI (s) (28:28) [09:33:37:888]: No System Restore sequence number for this installation.
    This patch package could not be opened.  Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid Windows Installer patch package.
    C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi
    MSI (s) (28:28) [09:33:37:888]: User policy value 'DisableRollback' is 0
    MSI (s) (28:28) [09:33:37:888]: Machine policy value 'DisableRollback' is 0
    MSI (s) (28:28) [09:33:37:888]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (28:28) [09:33:37:904]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    MSI (s) (28:28) [09:33:37:919]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    MSI (s) (28:28) [09:33:37:919]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
    MSI (s) (28:28) [09:33:37:919]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress 3: 2
    MSI (s) (28:28) [09:33:37:919]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (s) (28:28) [09:33:37:919]: Restoring environment variables
    MSI (c) (E0:88) [09:33:37:935]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (E0:88) [09:33:37:935]: MainEngineThread is returning 1635
    === Verbose logging stopped: 3-4-2009  9:33:37 ===

    This post should definitely help you
    http://blogs.msdn.com/sqlserverfaq/archive/2009/01/30/part-1-sql-server-2005-patch-fails-to-install-with-an-error-unable-to-install-windows-installer-msp-file.aspx?CommentPosted=true
    Feroz
    Mark as Answer if it helps. This posting is provided "AS IS" with no warranties and confers no rights.

  • Adobe Photoshop CS5 Windows Finnish update files failed to install/load

    Adobe Photoshop CS5 Windows Finnish update files failed to install/load.
    Loading updates fails at the end of the loading. Tried it yesterday and today same errors. Are the files corrupted at server or how to fix this ?
    Adobe Bridge CS5 4.0.5-update
    Adobe Extension Manager CS5 5.0-update
    Photoshop Camera Raw 6.7-update
    Photoshop CS5:n Photoshop 12.0.4-update

    update by downloading the files directly and then applying them:
    pre cc updates:  http://www.adobe.com/downloads/updates/

  • How can I get firefox to open a local file on Windows 8.1via File:open?

    I am trying to open a file from the desktop for viewing as a webpage. It is edited in MS Word. When I open the file it just shows the the text of the file, which is html code, it does not run the file as a webpage. How do I get the file to run as a webpage? Thank you.

    Make sure that the file has the .html file extension.
    That should be sufficient.
    Windows hides some file extensions by default.
    Among them are .html and .ini and .js and .txt, so you may only see file name without file extension.
    You can see the real file type (file extension) in the properties of the file via the right-click context menu in Windows Explorer.

  • I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open

    I received an email containing pdf files. I am using Adobe Reader Touch for Windows 8. File doesn't open. I am a new user to Windows 8.

    The full featured Reader for Windows 8 is Reader XI.
    Reader Touch works in all Windows 8 systems BUT it is intended mainly for use in mobile tablets - I see no particular reason to use it unless you can'r run Reader XI. Given it is mainly for use on mobile that can't use Flash, we aren't likely to ever see the development team spending their time on this.
    If you want the latest and greatest - at least try Reader XI, not X! (Flash is a separate download, it will prompt).

  • My cq56 wont start it keeps saying windows is loading files but wont start

    my compaq presario CQ56 wont sart. it just keeps telling me "windows is loading files" but just wont start

    Is the message that the printer is offline?
    Running the diagnostics at http://www.hp.com/go/tools may help resolve the issue.  
    If not then check the USB cable between the computer and printer and reseat it if necessary.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

Maybe you are looking for

  • Cannot select language in Powerpoint

    I would like to change all text on all slides on a powerpoint 2011 presentation to English. So, I found this Applescript (see below) that basically does what I would have to do manually in an automated way. It almost works, except after it finished r

  • Error Using DataExport function in Essbase

    Hi there, I'm using Hyperion Essbase version 9.3.1. And rite now I'm trying to export data in Essbase by the new CalcScript function DataExport directly to SQL server. I have 11 dimensions in my Essbase application. I did create 10 fields in SQL serv

  • Grouping records in an internal table

    Dear all, Pls follow the code and suggest me to get the specified format. Consider that  i have created a view to populate the reqd data and collect those in an internal table and do a calculation for one field and modify the internal table. when i p

  • IDOC Inbound processing error

    Hi Experts While IDOC posting i m encountering an error with status 64 (<b>No resources, Immed. processing not possible. Quota for rdispirfc_max_own_used_wp wxceed</b> ) Can anyone explain the reason behind this. Regards DhanyaR Nair

  • 4% of 20GB used but no files upload or in archive.

    Creative Cloud is reporting that I am useing 4% of my 20GB, however I have no files upload and no archive files. With the original release I did test it by uploading a bunch of files but deleted them... CC doesn't seem to have released that space.