Output file in not a proper format

Hello, My JAVA program generate an output file using FileWriter. The name of output file is output.dat (ie a NOTEPAD file). But when I open up the file it is not in proper format. All the text get clustered. But when I open the same file in MircoSoft Word its open with no problem. Is there any solution to this problem.
bye

Most text editors will accept '\n' alone as the line terminator. Notepad is an exception.
Workarounds are:
1. Write an '\r' immediately before each '\n'.
2. Get a decent text editor.

Similar Messages

  • I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format not supported for conversion to PDF".  They already are pdfs, what am I doing wrong?".

    I purchased the Adobe pdf Pack to combine 50 PDF files to one and when I select them from my folder it claims "the files are not in a format supported for conversion to PDF".  They already are pdfs, what am I doing wrong?

    Moved to Adobe PDF Pack (read only)

  • "tagged file is not of valid format"

    I'm getting a weird error starting up JDEV 3.1.681 ( waiting for 3.2! ):
    "Tagged file is not of valid format"
    and my Workspace is brought up... but the PROJECT has been disassociated! I re-include the Project and things seem to be OK... then a couple of days later, I get the same problem.
    Any permanent fix? ( while keeping JDev? )

    Hi,
    Big projects have sort of been a problem in the past, but it's always difficult to reproduce and track down the source of the problem. Doesn't help that the error doesn't mention which file is the problem.
    In general, we advise people to put their Business Components in one project, and their client code in a separate project. This is mostly for deployment purposes, so it's easier to encapsulate the business logic or server tier code from the client side code.
    I know that the DAC wizard allows you to create it all in one project, which was put in there for backwards compatibility with JDev 2.0 when BC4J was hidden in the same project. Under the covers as it were.
    This may or may not be the cause of the problems you're seeing. It might be worthwhile to create a new project in your workspace, remove all your client files for the application from the original project, and add them to the second project. I think you'll have a tougher time moving the BC4J objects, so I would leave those and just move the application files (panels, dialogs, etc.).
    After you do that, make sure that the new project has the correct libraries in it. By default, it will just have jdev-runtime, connectionmanager, and Oracle 8.1.6 JDBC, I think. You'll probably need to add the Infobus libraries, JBO runtime, and any others used by your first project. Once you have the library list correct for the client project, you can clean out the library list for the BC4J project so it's only what BC4J needs.
    By the way, you mention you have a lot of entity objects for LOVs. If you're just doing lookups, you don't need the entity object. You can create a view object based strictly on a query against the database. IT eliminates some overhead. On the other hand, if you have a lot of them, it might be a real pain to change them all.
    Sorry not to be able to provide a more definitive answer on the errors and the access violations.

  • File to file secnario output file is not created.

    Hi,
    while creating the file to file secnario, file is picked by xi server and shown to sxmb_moni but output file is not created.
    Please help.

    HI
    Go to RWB->Message Monitoring->Message Display Tool(MDT)->Audit Log and check the status..
    Go to SMQ2 and check is there any queue is pending in the Queue..
    If so try to activate it. For this you can refer this blog-
    XI :  How to Re-Process failed XI Messages Automatically
    If not-then check the configuration again-
    1) Check the Receiver Communication channel for the FTP URL/File creation mode etc
    2) Are you able to see the mapped data in SXMB_MONI..
    3) Reciever Agreement/Reciever Determiation/Interface Determination
    Check if you have given a Write Access to the folder in which the file is to be placed
    Thanks
    Gaurav

  • File Does Not Have Proper Content

    Hello,
    I'm working on rebuilding a project file after some knucklehead at work deleted many of the files in the project (don't worry, the person is still alive).
    After re-transcoding and re-synching all the files (interviews, to be precise), most of them have been able to be re-linked fine, even when the attributes of the clip have changed slightly.  One of them, however, is being grumpy
    When I try to reconnect it to the file, it says:
    "The file does not have the proper content to reconnect to 'clip name' at timecode x in sequence y."
    Is there any way to work around this?  I don't understand why all the other clips, some of which changed much more between their original versions and the new ones I've made, were able to be relinked when this one refuses.
    Any thoughts?
    Cheers,
    BWP

    You may have to simply reimport and cut the material into the sequence.
    This may be faster than trying to finesse a reconnect.
    x

  • FDM Multiload output file does not have period dimension member

    FDM is cutting the file successfully with multiload but missing period member from the record/row.
    About import file - location, category, number of periods, load controls and dimensions tags with 12 periods.
    Single record from import file...
    Entity, Account, Scenario, Version, FY11, Currency, HSP_Value, 1,2,3,4,5,6,7,8,9,10,11,12
    Note: Currency, HSP_Value were ignored.
    Running through FDM successfully creates the file but there is no period information.
    Here is an example of above record from output file
    Entity, Account, Scenario, Version, FY11, 1
    Entity, Account, Scenario, Version, FY11, 2
    Entity, Account, Scenario, Version, FY11, 3
    Entity, Account, Scenario, Version, FY11, 4
    Entity, Account, Scenario, Version, FY11, 5
    Entity, Account, Scenario, Version, FY11, 6
    Entity, Account, Scenario, Version, FY11, 7
    Entity, Account, Scenario, Version, FY11, 8
    Entity, Account, Scenario, Version, FY11, 9
    Entity, Account, Scenario, Version, FY11, 10
    Entity, Account, Scenario, Version, FY11, 11
    Entity, Account, Scenario, Version, FY11, 12
    As you can see, above records missing period. Following is what is expected.
    Entity, Account, Scenario, Version, FY11, Jan, 1
    Entity, Account, Scenario, Version, FY11, Feb. 2
    Entity, Account, Scenario, Version, FY11, Mar, 3
    Entity, Account, Scenario, Version, FY11, Apr, 4
    Entity, Account, Scenario, Version, FY11, May, 5
    Entity, Account, Scenario, Version, FY11, Jun, 6
    Entity, Account, Scenario, Version, FY11, Jul, 7
    Entity, Account, Scenario, Version, FY11, Aug, 8
    Entity, Account, Scenario, Version, FY11, Sep, 9
    Entity, Account, Scenario, Version, FY11, Oct, 10
    Entity, Account, Scenario, Version, FY11, Nov, 11
    Entity, Account, Scenario, Version, FY11, Dec, 12
    Is this a FDM setting or should I use a script?
    Thanks for your help in advance!

    Even though it is Essbase you still need the start period (Row 3). It is only the Load Control tags that vary between target applications, (and the number of periods tag if excel or text.
    "About import file - location, category, FDM, Start Period Date, number of periods, load controls and dimensions tags with 12 periods."

  • Can't open old files in CS2 in proper format

    Hi,
    I can open my files but not in color, and my base maps imported via cut and paste do not show up; and I cannot move most objects or alter text boxes. The top of the screen shows RGB/outline.
    Can anyone advise how to open my files with full functionality. Thanks Much.

    press Cmd + Y (Ctrl + Y on Win)

  • FILE - FILE Scenario - output file is not available

    Hi
    I'm doing simple file - file scenario based on the weblog
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    In RWB >> msg monitor shows, the message status is successful. But I'm unable to find output file in the directory as I mentioned.
    Pls help me where to find.. what is the problem
    - Govind J

    Hi Govind,
    These are a few things you can do:
    Check the permissions of the folder where the file is being generated by XI.
    If you are doing Content conversion, please can you just remove it and see if the XML file is getting generated.
    Also, please check if it's picked up by any other application when you place it on the server.
    I am assuming out here that you are speaking abt the file that is give by SAP XI after processing the incomming file.
    Also check default .trc log file in visual admin.it will tell u if there any errors
    and also check the permissions of the files generated by XI
    Regards,
    Abhy

  • Runtime().exec( "ls output.file" ) does not work....

    I try the following program in RedHat linux 7.1. It return silently but no output.file is created? What can i do? Please help!
    //start of program
    public class s{
         public static void mainj( String args[] ){
              try{
                   Runtime.getRuntime().exec( "ls > output.file" );
              }catch( Exception e ){
                   e.printStactTrace();
    //end of program.
    The program return silently, but no output.file is created? what can i do? please help...

    I have tried to put the "ls > output.file" into a command.sh file, and change the line:
         Runtime.getRuntime().exec( "./command.sh" );
    But still, no output.file is created?
    What can i do....
    please help....

  • CS6 Pshop - Alerts at startup; "All Readable Documents" not defaulting at opening; Format in file name not same as Format list when saving file

    Just downloaded CS6 Design Standard. System - OS10.6.8 (about to upgrade to 10.8), iMac 27 i5Intel 4core 12GBram 2.66Ghz
    As Pshop opens, I get three alerts...
    1 - Could not load Enable Async I/O module because does not work with this version of Photoshop
    2 - Could not load Multiprocessor Support module because does not work with this version of Photoshop
    3 - Could not load FastCore Routines module because does not work with this version of Photoshop
    Then asks if I want to be connected to internet or something like that. Then Pshop opens even before I click OK
    None of these happened with CS5.5
    I realize CS6 is 64bit. I have CS5.5 set at 32bit because of plugins.
    Two issues I've noticed so far with CS6.
    1 - As I open a document, the Enable selections drop down at bottom of window is not set on anything. I have to always select the All Readable Documents. Not the case in CS5.5 which was always default at All Readable Documents. Could not find anything in Prefs to this issue.
    2 - When saving a document, whether RGB or CMYK, the drop down Format selections are not accurate. The first three or four do read correctly as correlating with the suffix (.jpg .tif etc) in the file name at top of window. But then the subsequent format selections below third or fourth one read as the one above it in the list.
    eg: as RGB file: Saving through BMP indicates same in file name at top (.bmp). However, the next choice below that, Gif, still shows as .bmp in file name at top. And so on to bottom of list. Same with CMYK file.
    Never saw this in CS5.5.
    When I initially installed CS6, I noticed only item in the Plugins folder was Panels folder.... no other plugins. I thought this to be a download error of some sort and dragged basic plugins from 5.5 into 6 Plugins folder. Could this be the problem? Otherwise, I would have NO plugins in CS6
    I have downloaded CS6 twice now thinking the first was corrupted. I used both download options on Adobe page - Akamai and standard
    Same issues with both. One response stated this all to be a plugins problem. I have uninstalled "after market" plugins from both 5.5 & 6 SuperBladePro was the only one. Restarted CS6. Still same problems. Only items in Plugins are what came with program.

    I owe an apology to the previous responder Chris C, to this issue. I misread his solution thinking he meant I needed to delete ONLY the "additional" plugins like SBPro. Which I did. But rereading, I see he meant ALL the plugins I dragged from 5.5 because the 6 plugins folder was empty.
    I thought it was corrupted in download. So if you guys get points for solutions, be sure Chris gets a few since I responded saying it did not work.
    In fact, after removing the 5.5 plugins from 6, everything is working fine.
    Plus I didn't know the 6 plugin folder was for the "after markets" like SBPro which is good to know.
    Also thanks for the fairly quick response. I'm typically dubious about forums as troubleshooting solutions.
    Kinda like sending a message in a bottle out to sea. Never know when it's coming back.
    Sometimes issues are urgent. Your response team has encouraged me greatly  :-)
    But still bummed that Chats do not support CS6 however.

  • Output file name not inheriting preset name in filename

    Hi,
    Doing multiple encodes of same file to different formats. How can i have each file to have the preset included in its file name  eg. filename_presetname.mov
    And on a side note, I assume parallel encoding only works if you have a beefy machine? because at the moment its only encoding in series, although its a dual core so i would have expected at 2 parallel encodes?
    Thanks a lot
    tbk.

    it's not currently possible.
    it has been added as a feature request in the past.

  • Output form is not coming proper.

    Hi,
    I am using call function CONVERT_OTFSPOOLJOB_2_PDF to convert OTF spool number to PDF file.
    When I gone to tcode SP01 and checked out the output of same spool number then found out the proper output .
    But when I run my program using above function module to convert the spool number to PDF file then in PDF file some chanracters coming in chaniese.
    So what is the proper solution for the same.
    Thanks in advance.
    Regards,
    Vikram

    Try standard program RSTXPDFT4 to convert spool to PDF. Just give the spool request no and it will be converted to PDF. If this program converts the spool correctly then problem is with ur customized program.
    anya

  • Output file is not reaching the destination

    Hi,
      I am doing a simple file to file scenario using SAP PI 7.0. I am posting my input file in one location and after a simple mapping I need to receive my output in another location.My file is getting picked up and I can see that in the message monitoring it is showing the status as To Be Delivered. I have tested my configuration.That seems to be fine.
      The problem is I am not getting the file in the destination.
      Please send your suggestions on how to rectify this.
    Thanks in advance.
    Regards,
    Tiny

    Hi,
    Are you able to see the chequred flag for the scenario which you created.
    Check whether the file was picked only for the scenario which you are executing.
    Check the file name specified in the sender CC
    Check whether the target directory exists if not have you enabled the option to create the target directory in CC.
    Also do the check whether the scenario is working by testing the configuration in the ID.
    Go to ID->Tools> Test configuration> and provide the necessary details along with the payload information and check whether the scenario is correct.
    Also check you receiver determination, Interface mapping and receiver determination created for this scenario.
    Regards,
    Nithiyanandam

  • Dvd: 90 fast encode output file is not an mpeg-2

    I have a 40 minute video that when I use the DVD: 90 minute fast encode codec, it outputs it to a blank file. It doesn't have the mpeg-2 icon as it should. When I click on it, it opens up the batch window from compressor.
    Not a clue? This is the first time this has happened too!

    Some people have reported a field reversal problem with HDV to SD DVD encodes. There's an Apple technical document on this issue somewhere, but the problem was supposed to be addressed by a Pro Applications update a couple of years ago... This site might help you get to the bottom of the problem.
    http://www3.telus.net/bonsai/Step-by-Step.html

  • Problem in conversion of file into array of proper format

    how to do following 
    1) TO RETREIVE ALL THE SET OF STRING LOGGED 
    BETWEEN THE TIMINGS THAT IS GIVEN BY USER AS INPUT AND THE FORMAT TIMINGS OF IS BEING ATTACHED IN DEMO.DOCX 
    THIS IS ONE OF THE SET
    RQ_TM::11:28:41
    68556885844D13E9516
    RS_TM::11:28:42
    68B5B5688485A3E10C10000002D1800000000007F00C10000002D1800000000107F00C10000002D1800000000107F00C10000002D1800000000107F00C10000002D1800000000107F00C10000002D1800000000107F00C10000002D1800000000107F00C10000002D1800000000107F0F116 
    detailed problem is explained in document attached.
    Attachments:
    14-2-14.txt ‏59 KB
    demo.docx ‏145 KB

    Hi priya,
    well, I would start to search for timing information. Then I would pick all lines between the requested timestamps…
    I guess that is homework and you get some points/notes/grades for it. So please do your job on your own.
    Ask for specific problems but not for general solutions!
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

Maybe you are looking for