Text File opened in Wordpad cannot be parsed on OBPM 10GR3

Hi all,
Text File opened in Wordpad cannot be parsed on OBPM 10GR3
Why is that?
I use the following code to parse a file:-
textFile = TextFile();
textFile.open(name : "C:\testFile.txt");
logMessage("---Does file exist?--> " + textFile.exists);
foreach (line in textFile.lines) {
logMessage("-- The LINE is-->" + line);
pinBlockProcessing.linesCount = pinBlockProcessing.linesCount + 1;
pinBlockProcessing.deviceIdentifierArray[] = line;
textFile.close();

Hi all,
I also used other two methods to parse such a file which can be opened in Wordpad but not in Notepad.
1) I used Java.Util.Scanner
2) I also created and compiled a program/package/class which gets a file and parses it using Java.Util.Scanner using Java in Eclipse.
I created a JAR out of it and tried to use this JAR in my process by introspecting it and then passing the file to be parsed to the methods in this JAR file.
But this did not work either. Although the program does work in plain Java in Eclipse. It compiles and parses a a file which can be opened in Wordpad but not in Notepad.
My program for both these methods was :-
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
public class Test{
public static void main(String args[]) throws IOException {
FileReader fin = new FileReader("./testFile.txt");
Scanner src = new Scanner(fin);
src.useDelimiter("\n");
while (src.hasNext()) {
System.out.println(src.next());
fin.close();
This does not work either.
All programs and methods work when a text file can be opened in NotePad.
What could be possible solution in OBPM 10GR3?
It is something to do with Carriage Return and generating a file in UNIX which when opened in Notepad shows one straight horizontal line and when opened in Wordpad shows vertical lines.

Similar Messages

  • PDF files open in wordpad and are illegible?

    PDF files open in wordpad and are illegible? What to do?

    To permanently fix the issue go to Edit - Preferences - General and click the Select Default PDF Handler button, and then select Reader from the list and click OK.

  • Webutil- How to open text file by using Wordpad

    Hello:
    Is it possible to open the text file either from client or server (sun) by using the wordpad? I was able to open it with Notepad; however, it was given the rigth format such as new line.
    WEBUTIL_HOST.NONBLOCKING('CMD /C NOTEPAD'||:input_select.file_name);
    Thanks in advance for anyhelp.
    TD

    Thanks Phuong. I try it, but still does not work. I have tried the followings:
    CLIENT_HOST('CMD/C START "editor" C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt' );
    CLIENT_HOST('CMD/C START "editor" wordpad.exe D:\temp\out.txt' );
    WEBUTIL_HOST.NONBLOCKING('CMD /C C:\Program Files\Windows NT\Accessories\wordpad.exe D:\temp\out.txt');
    --trang                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Browser can't find a text file opened via the save as dialogue box

    Hi there,
    I have a servlet which outputs a file using the servlet output stream, with the following lines set:
    response.setContentType("application/msword");
    response.setHeader("Content-Disposition", "attachement; filename="+ fileName);
    servletOutStream.write(myBytes);
    servletOutStream.flush();
    It works fine for .doc files and it seems the mechanism is that it is saved to the Temporary Internet Folder and delivered from there when the user clicks on the 'open' or 'save' option in the browser popup dialogue box. However... when I try this with text files, (setting the content type to "text/plain") I get the open/save dialogue box up correctly but if I try to open the file it says it cannot find the file, and gives the path under the Temporary Interenet Folder. If I look in there the text file isn't present - though the .doc files are.
    So... it looks as if the problem is that for some reason it doesn't save the text files correctly to the Temporary Internet Folder.
    I can't deliver the text files inline as a solution as the filename is lost and it thinks it's an html file (which the client doesn't want).
    Any ideas?
    Alison

    At least also set the content length. Your browser may be configured be the default application to open textfiles. If the contentlength is not set, then most applications would refuse to open the file without choosing for 'Save' first and manually open it.

  • Deleting a line from a text file & opening a project from another project

    hi
    im doing project on linux redhat 8.0 using java (jbuilder 8). I need to
    open a project2 from behind a menu item in project1. I tried importing
    the package of project2 and then initializing a constructor of main
    class of project2 in project1(behind the "open project2" menu item) but
    i dont know where to place the class files of project2 so im getting a
    compilation error(when compiling project1) that unable to locate
    imported package files.
    is there any other way of doing this
    like making an .exe file of project2??? if so, then pls tell me how.
    Another problem is i want to delete a line of selected text from a text
    file
    using java. is there a method for that or any other way?
    Anybodyyyy have any ideasss?
    Alisha

    Cross- and double-posted: http://forum.java.sun.com/thread.jspa?threadID=645244

  • Downloaded pdf files open in wordpad and cant be read

    after downloading some files they open up in wordpad and cant be read.they appear as some kind of code.this happens with both text and photo files.i cant seem to find another application to try open them in. 
    This question was solved.
    View Solution.

    Hi,
    Wordpad can't open pdf files properly, you need pdf reader and the most popular is Adobe reader. Please download from the following link and install to your computer:
        http://get.adobe.com/reader/
    (Please don't tick add-in).
    Windows 8.1 actually comes with a reader but it's not good enough.
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Downloaded text files open in TextEdit. I need them to open in Word.

    Hello,
    I have to download some word documents from an online class and the way it's set up in the class is that i just click on the link and it automatically downloads it to Text Edit and doesn't let me choose which program to save it to. Is there somewhere I can change the settings on my Mac so that it either uses Word as the default program automatically or lets me choose the program.
    Thanks.

    the reason I need it to save to Word, is because it seems to change the table settings in the template when it saves it in text edit, which i don't want.

  • Export Screen to Flat Text file

    Hello,
    I'm very new in SAP and need to modify a little program.
    I would like to export the current screen in a flat text file.
    The file must be stored on the SAP server ( /usr/sap/data/bel) so not on my local harddrive.
    I searched and found found functions like WS_download and GUI_download, but I'm not sure how to use them. Can somebody help me please?
    Curent Code of my report:
    REPORT ZAT_CLRDEP01.
    Tables declaration
    tables : vbrp,bkpf,bseg.
    Data declaration
    data: begin of itab1 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab1.
    data: begin of itab2 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab2.
    data: begin of itab3 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              belnr like bkpf-belnr,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
          end of itab3.
    data: begin of itab4 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
              pswbt like bseg-pswbt,
          end of itab4.
    data: vbeln_tst like vbrp-vbeln.
    Selections
    parameters accgrp like vbrp-ktgrm default '03' obligatory.
    parameters compcde like bkpf-bukrs default 'LOI' obligatory.
    select-options: billdoc for vbrp-vbeln.
    select-options: customer for bseg-kunnr.
    select-options: fiscyear for bkpf-gjahr.
    select-options: reldate for bseg-augcp.
    select-options amount for bseg-pswbt.
    INITIALIZATION.
      fiscyear-low = sy-datum(4).
      fiscyear-high = sy-datum(4).
      append fiscyear.
      reldate-high = sy-datum.
      append reldate.
      amount-low = '100'.
      amount-high = '2000'.
      append amount.
    START-OF-SELECTION.
      refresh: itab1,itab2,itab3,itab4.
      clear  : itab1,itab2,itab3,itab4.
      clear: vbeln_tst.
      select * into corresponding fields of table itab1
        from vbrp inner join bkpf
        on    vbrpmandt = bkpfmandt
          and vbrpvbeln = bkpfxblnr
        where vbrp~ktgrm = accgrp
          and bkpf~bukrs = compcde
          and bkpf~gjahr = fiscyear.
      loop at itab1.
        if itab1-vbeln ne vbeln_tst.
          move itab1-belnr to itab2-belnr.
          move itab1-vbeln to itab2-vbeln.
          move itab1-arktx to itab2-arktx.
          append itab2.
        endif.
        vbeln_tst = itab1-vbeln.
      endloop.
      loop at itab2.
        select * from bseg
                      where bukrs = compcde
                        and belnr = itab2-belnr
                        and gjahr = fiscyear
                        and buzei = '001'
                        and augcp in reldate
                        and augbl ne ''
                        and vbeln in billdoc
                        and kunnr in customer.
          if sy-subrc = 0.
            move itab2-belnr to itab3-belnr.
            move bseg-kunnr to itab3-kunnr.
            select single name1 from kna1
                          into itab3-name1
                 where kunnr = itab3-kunnr.
            move itab2-vbeln to itab3-vbeln.
            move bseg-zfbdt to itab3-zfbdt.
            move bseg-augcp to itab3-augcp.
            move bseg-augbl to itab3-augbl.
            move itab2-arktx to itab3-arktx.
            append itab3.
          endif.
        endselect.
      endloop.
      loop at itab3.
        select * from bseg
                    where bukrs = compcde
                      and belnr = itab3-belnr
                      and gjahr = fiscyear
                      and hkont = '0000488600'
                      and pswbt in amount.
          if sy-subrc = 0.
            move itab3-kunnr to itab4-kunnr.
            move itab3-name1 to itab4-name1.
            move itab3-vbeln to itab4-vbeln.
            move itab3-zfbdt to itab4-zfbdt.
            move itab3-augcp to itab4-augcp.
            move itab3-augbl to itab4-augbl.
            move itab3-arktx to itab4-arktx.
            move bseg-pswbt to itab4-pswbt.
            append itab4.
          endif.
        endselect.
      endloop.
    END-OF-SELECTION.
      sort itab4 by kunnr.
      loop at itab4.
        at first.
          write:/ '   customer                    ','billing doc.',
          'Billing date',' Release date','Release doc.',
         '            material                         ','G/L amount'.
        endat.
        write:/ itab4-name1.
        write at 36 itab4-vbeln.
        write at 47 itab4-zfbdt.
        write at 61 itab4-augcp.
        write at 74 itab4-augbl.
        write at 88 itab4-arktx.
        write at 127 itab4-pswbt.
      endloop.
    Thanks in advance!
    Kindly regards,
    Nico

    Hello,
    Thanks for your help and fast reaction, I added the 'open dataset' but probably made some minor error:
    I'm getting  field "result" (name of my text file) is unknown. It is neither in one of the specified tables or defined by a 'DATA' statement
    Currently have following code:
    Objet du programme :                                                 *
          Recherche de documents de facturation SD sur base de           *
          l' "account assignment group" de l'article                     *
          Stocker ces valeurs dans une table interne afin                *
          de retrouver les pièces comptables correspondantes.            *
          Afficher le N° du document de facturation, celui de la         *
          pièce comptable, la date de release du release document.       *
    REPORT ZAT_CLRDEP01.
    Tables declaration
    tables : vbrp,bkpf,bseg.
    Data declaration
    data: begin of itab1 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab1.
    data: begin of itab2 occurs 0,
              vbeln like vbrp-vbeln,
              arktx like vbrp-arktx,
              belnr like bkpf-belnr,
          end of itab2.
    data: begin of itab3 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              belnr like bkpf-belnr,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
          end of itab3.
    data: begin of itab4 occurs 0,
              kunnr like bseg-kunnr,
              name1 like kna1-name1,
              vbeln like vbrp-vbeln,
              zfbdt like bseg-zfbdt,
              augcp like bseg-augcp,
              augbl like bseg-augbl,
              arktx like vbrp-arktx,
              pswbt like bseg-pswbt,
          end of itab4.
    data: vbeln_tst like vbrp-vbeln.
    Selections
    parameters accgrp like vbrp-ktgrm default '03' obligatory.
    parameters compcde like bkpf-bukrs default 'LOI' obligatory.
    select-options: billdoc for vbrp-vbeln.
    select-options: customer for bseg-kunnr.
    select-options: fiscyear for bkpf-gjahr.
    select-options: reldate for bseg-augcp.
    select-options amount for bseg-pswbt.
    INITIALIZATION.
      fiscyear-low = sy-datum(4).
      fiscyear-high = sy-datum(4).
      append fiscyear.
      reldate-high = sy-datum.
      append reldate.
      amount-low = '100'.
      amount-high = '2000'.
      append amount.
    START-OF-SELECTION.
      refresh: itab1,itab2,itab3,itab4.
      clear  : itab1,itab2,itab3,itab4.
      clear: vbeln_tst.
      select * into corresponding fields of table itab1
        from vbrp inner join bkpf
        on    vbrp~mandt = bkpf~mandt
          and vbrp~vbeln = bkpf~xblnr
        where vbrp~ktgrm = accgrp
          and bkpf~bukrs = compcde
          and bkpf~gjahr = fiscyear.
      loop at itab1.
        if itab1-vbeln ne vbeln_tst.
          move itab1-belnr to itab2-belnr.
          move itab1-vbeln to itab2-vbeln.
          move itab1-arktx to itab2-arktx.
          append itab2.
        endif.
        vbeln_tst = itab1-vbeln.
      endloop.
      loop at itab2.
        select * from bseg
                      where bukrs = compcde
                        and belnr = itab2-belnr
                        and gjahr = fiscyear
                        and buzei = '001'
                        and augcp in reldate
                        and augbl ne ''
                        and vbeln in billdoc
                        and kunnr in customer.
          if sy-subrc = 0.
            move itab2-belnr to itab3-belnr.
            move bseg-kunnr to itab3-kunnr.
            select single name1 from kna1
                          into itab3-name1
                 where kunnr = itab3-kunnr.
            move itab2-vbeln to itab3-vbeln.
            move bseg-zfbdt to itab3-zfbdt.
            move bseg-augcp to itab3-augcp.
            move bseg-augbl to itab3-augbl.
            move itab2-arktx to itab3-arktx.
            append itab3.
          endif.
        endselect.
      endloop.
      loop at itab3.
        select * from bseg
                    where bukrs = compcde
                      and belnr = itab3-belnr
                      and gjahr = fiscyear
                      and hkont = '0000488600'
                      and pswbt in amount.
          if sy-subrc = 0.
            move itab3-kunnr to itab4-kunnr.
            move itab3-name1 to itab4-name1.
            move itab3-vbeln to itab4-vbeln.
            move itab3-zfbdt to itab4-zfbdt.
            move itab3-augcp to itab4-augcp.
            move itab3-augbl to itab4-augbl.
            move itab3-arktx to itab4-arktx.
            move bseg-pswbt to itab4-pswbt.
            append itab4.
          endif.
        endselect.
      endloop.
    END-OF-SELECTION.
      sort itab4 by kunnr.
    EXPORT OUTPUT TO FLAT TEXT FILE :                                    *
    open dataset result for output in text mode.
    if sy-subrc = 0.
    loop at itab4.
    at first.
    write:/ ' customer ','billing doc.',
    'Billing date',' Release date','Release doc.',
    ' material ','G/L amount'.
    endat.
    write:/ itab4-name1.
    write at 36 itab4-vbeln.
    write at 47 itab4-zfbdt.
    write at 61 itab4-augcp.
    write at 74 itab4-augbl.
    write at 88 itab4-arktx.
    write at 127 itab4-pswbt.
    transfer itab4 to result.
    endloop.
    close dataset result.
    endif.
    Thank you!
    Regards,
    Nico

  • Reading from text file gives IndexOutOfBoundsException error

    Dear All
    I really need your help in doing my assignment as soon as possible
    I am reading from a text file the following data
    4231781,Ali,AlAli
    4321790,Adnan,AlAli
    using two classes first one is
    public class Student
    private String studFName;
    private String studLName;
    private String studID;
    private double assignment1;
    private double assignment2;
    private double final_exam;
    private double total;
    public String getstudfName() {
    return studFName;
    public void setstudfName(String studFName) {
    this.studFName = studFName;
    public String getstudlName() {
    return studLName;
    public void setstudlName(String studLName) {
    this.studLName = studLName;
    public String getstudid() {
    return studID;
    public void setStudID(String studID){
    this.studID = studID;
    public double getAssignment1() {
    return assignment1;
    public void setAssignment1(double Assignment1) {
    this.assignment1 = assignment1;
    public double getAssignment2() {
    return assignment1;
    public void setAssignment2(double Assignment2) {
    this.assignment2 = assignment2;
    public double getFinal_exam() {
    return final_exam;
    public void setFinal_exam(double final_exam) {
    this.final_exam = final_exam;
    public double getTotal() {
    return total;
    public void setTotal(double total) {
    this.total = total;
    Student[] students = new Student[30];
    the second is manager one which is:
    import java.io.*;
    import java.io.IOException;
    import java.util.Arrays;
    import java.util.ArrayList;
    public class manager {
    public static Student[] students = new Student[30];
    public static void main(String args[]) {
    // We want to let the user specify which file we should open
    // on the command-line. E.g., 'java TextIO TextIO.java'.
    if(args.length != 1) {
    System.err.println("usage: java manager (file_name)");
    System.exit(1);
    // We're going to read lines from 'input', which will be attached
    // to a text-file opened for reading.
    BufferedReader input = null;
    try {
    FileReader file = new FileReader(args[0]); // Open the file.
    input = new BufferedReader(file); // Tie 'input' to this file.
    catch(FileNotFoundException x) { // The file may not exist.
    System.err.println("File not found: " + args[0]);
    System.exit(2);
    // Now we read the file, line by line, echoing each line to
    // the terminal.
    try {
    String line;
    // Student[] students = new Student[30];
    while( (line = input.readLine()) != null ) {
    // System.out.println(line);
    int m = line.indexOf(",");
    int j = line.lastIndexOf(",");
    String sID = line.substring(0,m);
    String sfn = line.substring(m+1,j) ;
    String sln = line.substring(j+1);
    int n = 0;
    students[n] = new Student();
    students[n].setStudID(sID);
    students[n].setstudfName(sfn);
    students[n].setstudlName(sln);
    students[n].setAssignment1(0.0);
    students[n].setAssignment2(0.0);
    students[n].setFinal_exam(0.0);
    students[n].setTotal(0.0);
                        ++n;
    catch(IOException x) {
    x.printStackTrace();
    // Arrays.sort(Student.students);
         int length = args.length;
    System.out.println();
    // System.out.println("Sorted by stuID");
    for (int i=0; i<length; i++) {
    System.out.print("Student ID "+students.getstudid() + "|||");
    System.out.print("Student Fname "+students[i].getstudfName() + "|||");
    System.out.print("Student name "+students[i].getstudlName());
    when I comile progrma it doesn't give any error but when I run it gives me the following exception:
    java.lang.String.substring. IndexOutOfBoundsException string index out of range : -1
    as can be seen from the manager class I form the read line from readline method as follows:
    int m = line.indexOf(",");
    int j = line.lastIndexOf(",");
    String sID = line.substring(0,m);
    String sfn = line.substring(m+1,j) ;
    String sln = line.substring(j+1);
    Therefore, student ID should be read from the beggining tel the character before the comma (,) then from the character after first comma tel that before second comma will be firstname, finally the rest after second comma will be last name.
    I want my program to read all lines in the text file and put them in order as above forming the array like database record and print them all.
    Could you please Help me in this matter friends as soon as possible.
    Regards,
    Java_Hobby

    please, format you code first (select your java code and hit the code button), then post all the error log message.

  • "Parser module cannot parse the file" - opening .ai files in PS CS3

    Hi,
    I understand Photoshop CS3 can open Illustrator .ai files.
    When inside Photoshop, file/open, select .ai file, I get the following message:
    "Could not complete your request because the parser module cannot parse the file"
    This presents a huge problem because I have original artwork I need to send to the printers, but cannot get into it! It was created by another company on our behalf.
    I have downloaded and installed the Camera RAW 4.5 update and it hasn't helped, the error still occurs.
    Does anyone have any idea what is causing this?
    Many thanks!
    Sally

    If the Illustrator file is correctly saved you can "Place" it in Photoshop. It will appear as a Smart Object.

  • Intermittently Text file cannot be opened directly from Finder

    One day I would like to duplicate a text file by right click such file to select "Duplicate". However I accidentally pressed "Return" before right click selecting "Duplicate". It means that after pressing "Return", I entered the mode to rename this text file name, but then I continuously to right click selecting "Duplicate".
    After that, I saw a duplicated text file with the same name plus "copy" after this name. The file was dim in color. I tried to delete it but Finder disallow me to delete it. Finder told me that it was occupied by other and ask me whether I would like to "Force Delete". Then I clicked yes. Deletion operation was successful.
    After that, when I opened the same original text file by directly double click the text file. The operation was failed and Finder output two error window prompt with below two error messages:
    "The application can't be found"
    "The operation can't be completed
    An unexpected error occurred (error code -43)"
    After that, I tried to check the information by clicking "Ctrl-I" on this file. By default, I use TextEdit to open text file. I tried to select TextEdit as the default application for all text file in the information window. However, Finder still output above two windows prompt of error messages.
    If I tried to open TextEdit or any other editor application first and then open such text file directly from its menu, the text file can then be opened.
    Even for files within the same directory, I also cannot directly double click them from Finder to open it. Until I close the Finder window and reopen a new Finder window of such directory, then I can double click to open text file, where it would be opened by my default text editor "TextEdit".
    After that, from time to time, such two error message windows will prompt out disallowing me to directly double click opening the text file. For example, originally a text file can be opened properly. After working on the file some time later and try to open the other text file in the same directory, such two message windows will prompt out. Or when I work such text file and the swap to other application, and then go back to Finder to double click such opened text file, such two error message windows will also prompt out. The only way to temporary fix it is to close the Finder window first and reopen it again.
    In addition, after such accident, I also discovered that Finder cannot instantly update directory content anymore. For example, I setup FTP server and someone can upload files to my Public directory, and where my Public directory has been opened before anyone ftp files to me, the Public directory cannot update itself after someone uploaded files to me through ftp.
    Or sometime I execute copy operation within VMware image to copy a file to shared directory, I also cannot see the directory in Finder update the content. I have to click to other directory and then go back to such shared directory so as to refresh the directory content list. Even I click "Ctrl-R", it cannot refresh the directory.
    In the past before such accident, Finder works fine to update directory content promptly after any upload or copy operation.
    In addition to bug fix patch, is there any workaround solution I can try to recover my Finder?

    HI,
    This is a shot in the dark but it can't hurt.
    Locate these files.
    com.apple.finder.plist
    com.apple.textedit.plist
    ~/Library/Preferences
    Move those files the Trash and restart your Mac.
    If that doesn't do the job, boot from your install disk and check the startup disk for errors.
    Insert Installer disk and Restart, holding down the "C" key until grey Apple appears.
    Go to Installer menu and launch Disk Utility.
    Select your HDD (manufacturer ID) in the left panel.
    Select First Aid in the Main panel.
    *(Check S.M.A.R.T Status of HDD at the bottom of right panel. It should say: Verified)*
    Click Repair Disk on the bottom right.
    If DU reports disk does not need repairs quit DU and restart.
    If DU reports errors Repair again and again until DU reports disk is repaired.
    When you are finished with DU, from the Menu Bar, select Utilities/Startup Manager.
    Select your start up disk and click Restart
    If the hard disk appears to be ok and you still can't launch Text Edit, back up all important data and perform an Archive & Install.
    http://theappleblog.com/2009/08/27/snow-leopard-the-installation-process/
    Carolyn

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • How to make the Open/Save dialogue download the text file instead of JSP

    I am currently coding on a JSP program, which searches the database and writes the resultset into a file on the server, and then allows the client to download this tab delimited text file onto their local machine. But I met a problem, when the default Open or Save dialogue appears, it shows that it's trying to download the running JSP file from my local host instead of the newly-created text file. Despite this, when I click OK to either Open or Save the file, a warning dialogue will appear saying: The explorer cann't download this file, it's unable to find this internet site or something like that. I get no error message from the server but I was always told that Javax.servlet.ServletException: getWriter() was already called. What does this mean?
    I guess maybe this is caused by the mix use of outputStreams in my program. I don't know if there is a way to directly read the resultset from the database and then send it through outputStream to the client. My solution is: first create a file on the server to hold the resultset, and then output this file to the client. I did all these in one JSP program: Create file on the server, search database, and then read file and output the contents to client. Is this correct? I attached my code, please feel free to correct any of my mistake? Thanks!
    //global.class is a class dealing with database connection
    <%@ page language="java" import="java.sql.*,java.util.*,java.math.*,java.io.*,ises.*,frmselection.*" %>
    <jsp:useBean id="global" scope="session" class="ises.Global" />
    />
    <!--start to process data-->
    <%
    //get query statement from the session
    String sQuery = "";
    if (session.getAttribute("sQuery")!=null && !(session.getAttribute("sQuery").toString()).equals(""))
    sQuery = session.getAttribute("sQuery").toString();
    String path = "c:/temp";
    String fileName = "temp.TXT";
    File file= null;
    FileOutputStream fo = null;
    PrintStream ps = null;
    try {
         file = new File(path,fileName);
         if(file.exists()) {
         file.delete();
         file.createNewFile();
         fo = new FileOutputStream(file);
         ps = new PrintStream(fo);
    }catch(IOException exp){
         System.out.println("IO Exception: " +exp.toString() );
    java.sql.ResultSet recResults     = null;
    java.sql.Statement STrecResults = null;
    STrecResults = global.getConnection().createStatement();
    recResults = STrecResults.executeQuery(sQuery);
    ResultSetMetaData meta = recResults.getMetaData();
    int columns = meta.getColumnCount();
    String [] tempColumnName = new String[columns];
    String [] ColumnName =null;
    int DisColumns = 0;
    int unDisCol = 0;
    String sLine = "";
    if(recResults.next()) {     //if_1
    for(int n=0;n<columns;n++) {
    String temp = meta.getColumnName(n+1);
    if(!temp.equals("PROJECTID")&&!temp.equals("BUILDINGID")&&!temp.equals("HAZMATPROFILEID")) {
    sLine = sLine + "'" + temp + "'" + " ";
    tempColumnName[DisColumns] = temp;
    DisColumns ++;
    ColumnName = new String[DisColumns];
    }else {
    unDisCol ++;
    }//end for
    for(int i=0;i<(columns-unDisCol);i++) {
    ColumnName[i] = tempColumnName;
    ps.println(sLine);
    do{
    sLine = "";
    for(int n=0;n<(columns-unDisCol);n++) {
    String tempColName = recResults.getString(ColumnName[n]);
    if(tempColName==null) {
    sLine = sLine + "" + " ";
    } else {
         sLine = sLine + "'"+tempColName+"'" + " ";
    ps.println(sLine);
    }while(recResults.next());
    }     //end if_1
    recResults.close();
    recResults = null;
    STrecResults.close();
    STrecResults = null;
    %>
    <!--end of processing data-->
    <!--start of download.jsp-->
    <%
    //set the content type to text
    response.setContentType ("plain/text");
    //set the header and also the Name by which user will be prompted to save
    response.setHeader ("Content-Disposition", "attachment;filename=temp.TXT");
    //Open an input stream to the file and post the file contents thru the servlet output stream to the client
    InputStream in = new FileInputStream(file);
    ServletOutputStream outs = response.getOutputStream();
    int bit = 256;
    try {
         while ((bit) >= 0) {
         bit = in.read();
    outs.write(bit);
    } catch (IOException ioe) {
    ioe.printStackTrace(System.out);
    outs.flush();
    outs.close();
    in.close();     
    %>
    <!--end of download -->

    Thanks. I believe something wrong with this statement
    in my program:
    You are correct there is something wrong with this statement. Seeing how you are doing this in a jsp, not really what they're made for but thats another topic, the output stream has already been called. When a jsp gets compiled it creates a few implicit objects, one of them being the outputstream out, and it does this by calling the response.getWriter(). getWriter or getOutputStream can only be called once, other wise you will get the exception you are experiencing. This is for both methods as well, seeing how the jsp compiles and calls getWriter means that you cannot call getOutputStream. Calling one makes the other throw the exception if called as well. As far as the filename problem in the browser goes I'm guessing that it's in IE. I've had some problems before when I had to send files to the browser through a servlet and remember having to set an inline attribute of some sort in the content-dis header inorder to get IE to see the real filename. The best way to solve this is to get the orielly file package and use that. It is very easy to use and understand and does all of this for you already. Plus it's free. Cant beat that.
    ServletOutputStream outs =
    response.getOutputStream();
    because I put a lot of printout statement within my
    code, and the program stops to print out exactly
    before the above statement. And then I get the
    following message, which repeats several times:
    ServletExec: caught exception -
    javax.servlet.ServletException: getWriter() was
    already called.

  • How to work on 2 open text files in one main program

    I write to one text file and then I close it. I then open another text file in the same "main" class but I cannot write to this file - I get the following error: "Exception in thread "main" java.util.NoSuchElementException".
    Here's the code with the line underlined, at which point the error above gets reported:
    import java.io.*;
    import java.util.*;
    public class TwoFileStudentMarks
    public static void main(String[] args) throws IOException
    PrintWriter stFile = new PrintWriter (new FileWriter ("stFil.txt"));
    Scanner kbd = new Scanner(System.in);
    int lineNum = 0;
    System.out.println("Type in a name: (ZZZ to stop)");
    String name = kbd.nextLine();
    while (!name.equalsIgnoreCase("ZZZ"))
    stFile.println(name);
    lineNum++;
    System.out.print("Input next name: (ZZZ to stop)");
    name = kbd.nextLine();
    stFile.close();
    kbd.close();
    PrintWriter tstFile = new PrintWriter (new FileWriter ("tstFil.txt"));
    kbd = new Scanner(System.in);
    for (int j=0; j<lineNum; j++)
    for (int i=0; i<3; i++)
    System.out.print("For student " + j + " enter test " + i + ": ");
    int tst = kbd.nextInt();
    tstFile.print(tst+" ");
    tstFile.println();
    tstFile.close();
    kbd.close();
    } // end main     
    } // end class

    Thank You for responding to my question. I am new to the forum. I have posted only ONE question since joining on Novemebr 5th, 2007. So I have a question. What are tags  and how does one include them in a question that one wishes to post to the forum?
    Secondly, my experience of Java is only about 10 months. So any advice, tips, replies are greatly appreciated and most welcome, so that I may continue to use this language.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Please help me fix error " Application descriptor file cannot be parsed "

    I start with Flash - AIR for Android
    When i publish :
    A notice :
    "Error creating files
    Application descriptor file cannot be parsed"
    File XML by Flash created :
    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
    <application xmlns="http://ns.adobe.com/air/application/3.2">
      <id>com.adobe.example</id>
      <versionNumber>1.0.6</versionNumber>
      <versionLabel>1.0.6</versionLabel>
      <filename>example</filename>
      <description/>
      <!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
      <name>example</name>
      <!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
      <copyright/>
      <initialWindow>
        <content>example.swf</content>
        <systemChrome>standard</systemChrome>
        <transparent>false</transparent>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <aspectRatio>portrait</aspectRatio>
        <renderMode>auto</renderMode>
        <autoOrients>false</autoOrients></initialWindow>
      <icon>
        <image36x36>icon/icon36.png</image36x36>
        <image48x48>icon/icon48.png</image48x48>
        <image72x72>icon/icon72.png</image72x72>
      </icon>
      <customUpdateUI>false</customUpdateUI>
      <allowBrowserInvocation>false</allowBrowserInvocation>
      <android>
        <manifestAdditions>
          <![CDATA[<manifest>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
    </manifest>]]>
        </manifestAdditions>
      </android>
    </application>
    I don't pubslish apk ?
    Please hellp me  fix error

    I have tried and  able to package an apk using your XML file.Could you please make sure your XML file starting from line 1 and coloumn 0.Any space will results in the error (Application Descriptor file cannot be parsed)
    -Pranali

Maybe you are looking for