Opening Text File.

my text is file is getting updated every second, how can i access that updated data from the text file using java. It is just that i am getting some data from an encoder, the encoder is going to put the data into a text file and it is going to update data in some time interval. I just wanna be able access that updated data and display onto the screen until no new data is put in the text file.

Not sure exactly. But something you could try:
use a FileReader object to read characters in until there are no more. Then sleep the thread(probably not the event dispatch thread.., so have a seperate thread that can wait) for some amount of time(like a second) so whatever is writing to the file has time to write... Now if the FileReader isnt detecting that the the file is being written to, then you will need to halt when you are done reading. then close the reader recreate it and skip all the characters that you have read in the previous try. meaning you'll have to keep track of how many chars you've read.

Similar Messages

  • Open text files & save as worksheets in excel with Automator?

    hi,
    i'm an Automator newbie and i'll admit upfront i don't know apple script. i have a bunch of text files that i'd like to open in excel. the basic actions would be to tell excel to look for 'all documents' and to open as space delimited. then i want to save the files as excel spreadsheets rather than txt files.
    i assume i need to use some combination of applescript and automator to do this, but i don't even know where to start. it seems this is something simple someone might have already written a script/action for. is there a repository of such things anywhere? if not, does anyone want to help me through the process of creating such an action?
    thanks,
    jill
    PB G4 1.5GHz, dual PM G5   Mac OS X (10.4.7)   airport, bluetooth

    jill,
    Here is a solution.
    Create an Automator workflow with the following actions:
    1) Get Specified Finder Items (specify the folder containing your space delimited text files)
    2) Get Folder Contents
    3) Run AppleScript (delete all of the text in the action, click on the link below which will put the AppleScript into Script Editor, select the whole thing, copy it to the Clipboard, paste it into the action)
    click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">on run {input, parameters}
    repeat with aTextFile in input
    set theTextFilePath to aTextFile as string
    tell application "Microsoft Excel"
    open text file filename theTextFilePath data type delimited with space
    set theWorkbook to last workbook
    set thePath to path of last workbook
    set theOriginalWorkbookName to name of last workbook
    set theNewWorkbookName to ((characters 1 through -5 of theOriginalWorkbookName) as string) & ".xls"
    set theNewFilePath to thePath & ":" & theNewWorkbookName
    save workbook as theWorkbook filename theNewFilePath file format workbook normal file format
    close theWorkbook saving no
    end tell
    end repeat
    return input
    end run</pre>
    I am assuming that the text files are the only files in the folder. If they are not then some further filtering will be required likely through inserting a Filter Finder Items action after step 2).
    PowerBook 12"   Mac OS X (10.4.7)  

  • Error in opening text file in JSF

    Hello,
    I am developing a Web application using JavaServer Faces Beta Version 1.0 and the Web application needs to open a text file. I used a Java class called by a backingbean class to open the text file.
    The problem is that the system cannot find and read the text file.
    The system shows the following errors.
    Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: javax.faces.el.EvaluationException: java.lang.RuntimeException: Could not
    read text file test.txt: java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:207)
    root cause
    javax.faces.FacesException: javax.faces.el.EvaluationException: java.lang.RuntimeException: Could not read
    text file test.txt: java.io.FileNotFoundException: test.txt (The system cannot find the file specified)
         com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:83)
         javax.faces.event.ActionEvent.processListener(ActionEvent.java:57)
         javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:974)
         javax.faces.component.UICommand.broadcast(UICommand.java:274)
         javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:217)
         javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:316)
         com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:80)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:171)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:196)
    note The full stack trace of the root cause is available in the Tomcat logs.
    I would like to ask how to open text file in the JSF framework.
    Thank you in advance.
    regards,
    oscar

    This is not a JavaServer Faces related issue. Anytime you try to open disk files in a web application, you need to use absolute pathnames. You have no control over what the current directory of our servlet container is set to.
    If the file you're reading is actually inside your web application (say, "test.txt" is in a subdirectory "files" ), you can get access to an input stream for it, in a portable way, by calling the getResourceAsStream() method on ServletContext. From an event handler, that might look like this:
      ServletContext sc = (ServletContext) FacesContext.getCurrentInstance().
        getExternalContext().getContext();
      InputStream stream = sc.getResourceAsStream("/files/test.txt");Craig McClanahan

  • Pages 5 in Mavericks no longer opens Text files?- need to open old Clarisworks files

    My 90 year old uncle clung to ClarisWorks, Appleworks far too long
    He still has Claris Works documents he needs to open.Some so old that even AppleWorks version  6x, the final version of AppleWorks could not open!)
    In Mountain Lion, he could open the older Clarisworks- Appleworks documents in TextEdit  , save as  .TXT file and then open that file in Pages
    Tonight, after installing OS 10.9  ( Mavericks)he finds this work around unrelable : Sometimes the new Pages cannot open the .TXT message
    How do  I help him convert his old documents?
    ( he saved  names and addresses in to Claris Works documents instead of entering into his Contacts/Address Book so now he is panicky to retrieve the addresses as he starts working on his holiday greeting and gift mailings)

    Will the old Pages run under Maverick?
    IF so that will be something to try
    Old Pages did not open up the old Clarisworks docs but Pages 09 DID respond when we changed the extension of the CW documents to "TXT".
    So , Uncle can try using Pages 09
    We also can try Libre
    I can install Text Wrangler- there was some advice that it will open the old CW files.
    My concern is that Uncle IS 90years of age. He is remarkable using a Mac but he needs, wants everything to be straightforward and resists, cannot handle any process requiring too many steps
    The need to use an intermediary translation system (CW->TXT->Pages) is stressful for him.
    Such a shame that Apple did not program a translator to open the files made by its previous proprietary software (ClarisWorks and Appleworks)
    Thanks all

  • 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Open Text File to Edit

    Hi!
    I have Java application where I wanted to allow user to make changes in configuration file (text file). Can I open Microsoft Notepad from My Java Application and make the changes/save the files?

    Hi!
    I have Java application where I wanted to allow user
    to make changes in configuration file (text file).
    Can I open Microsoft Notepad from My Java
    Application and make the changes/save the files?Yes you can, but I wouldn't recommend such an approach. Try using a properties file instead:
    http://java.sun.com/docs/books/tutorial/essential/environment/properties.html
    or if you have an other format (other than key-value based) for you configuration file, just use java's io package to manipulate the data:
    http://java.sun.com/docs/books/tutorial/essential/io/
    Good luck.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • Desktop.open can not open the file with unicode letters in the path?

    String filename = "/home/wenkai/received/&#27979;&#35797;.txt";
    try {
         File file = new File(filename);
         Desktop.getDesktop().open(file);
         } catch(IOException ex) {
              ex.printStackTrace();
              return;
         }"&#27979;&#35797;" is just Chinese word. Now, I am using Ubuntu7.10, Gnome2.20.1, system environment setting is LANG="zh_CN.UTF-8", and java version is 1.6.0.
    My system will open text file using gedit application, but when I run the code above, "file:/home/wenkai/received/&#27979;&#35797;.txt&#65306;file name or URI format error." printed in console and gedit open an temp empty file.
    Do I need to encode the file path? I have tried URLEncoder.encode(String, String), but it dose not work.

    RGold1963 wrote:
    …would like to be able to do that with CS5 as well…
    I understand that, of course.  But since I don't do windows, the above is all I can offer. 
    Wo Tai Lao Le
    我太老了     

  • Writing in between a text File

    Hi all,
    During a task, I am facing an interesting problem, this came first time since my 2 years development in Java.
    In always use
    BufferedReader in = new BufferedReader(new FileReader("/home/oracle/init1.txt"));
    to read from file and,
    PrintWriter opRpt = new PrintWriter ( new FileWriter("/home/oracle/init1.txt", true));
    to write to a file.
    This always works fine, but in the current task, I have to write in a text file,
    This file has e.g. 120 lines and I have to write after 36th line.
    So far, the suggestion I found is first to open text file (e.g. A),
    write first 36 lines to another file (e.g. B)
    then write new line to B,
    and then write remaining lines from A to B.
    Is there any easy way to do this job...
    Please guide me, I m in trouble.
    Thankx in advance.

    Please guide me, I m in trouble.No you're not; you already outlined a fine scenario how to accomplish this. If your file really contains just
    ~100 lines, an alternative would be to read the entire thing in core (the first part), add the new line(s)
    and read the rest of the file. Close the file and reopen it for writing again (effectively destroying its old
    contents) and write the new contents to the file again. An List containing all the lines of the
    file would do fine here.
    kind regards,
    Jos

  • How do I compare these text files (aka spell check)

    I'm having the hardest time figuring out how to get this spell check to work. Basically, I need to open the dictionary.txt file and then another file which will be spell checked. Ignoring case sensitivity, punctuation, and word endings (such as ly, ing, s). And then output to the user the words that were not found in the dictionary. Here is what I have so far (and it is very basic.... there is no attempt to compare yet since I don't know how to approach this). I only have it outputting to a JTextArea what is opened minus punctuation and upper case....
    import java.util.Scanner;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    //  Created Sept 4, 2004
    *   @version 1.0
    *   This program will store dictionary.txt to a String array and
    *   open another text file to be specified by the user of the program.
    *   As the scanner proceeds through the document, it will spell check
    *   and output any (case insensitive) words not found in the
    *   dictionary.txt file.
    public class Spell extends JFrame {
        /** Area to place the individual words in the file */
        JTextArea outputDictionary, outputWord;
    *  Constructor for the class.  Sets up the swing components.
    *  Prompts the user for the files to be processed.  Then invokes
    *  the process method to actually do the work.
    public Spell() {
         // A JTextArea is used to display each word found in the file.
         outputDictionary=new JTextArea("Dictionary List\n\n");
         add (new JScrollPane(outputDictionary));
         //Set the size to 300 wide by 600 pixels high
         setSize(300,600);
         setVisible(true);
            outputWord=new JTextArea("Opened Document\n\n");
            add (new JScrollPane(outputWord));
            setSize(300,600);
            setVisible(true);
        //Prompts user for the dictionary.txt file
        JFileChooser dictionary = new JFileChooser();
        int returnVal = dictionary.showOpenDialog(this);
         if  (returnVal == JFileChooser.APPROVE_OPTION) {
              storeDictionary(dictionary.getSelectedFile());
        //Prompt user to open file to be checked          
        JFileChooser word = new JFileChooser();
        int returnVal2 = word.showOpenDialog(this);
            if (returnVal2 == JFileChooser.APPROVE_OPTION){
                storeOpenFile(word.getSelectedFile());
    public void storeDictionary(File dictionaryFile) {
         String dictionary="";
         Scanner scanner=null;
        try {
            // Delimiters specifiy where to parse tokens in a scanner
           scanner = new Scanner(dictionaryFile).useDelimiter("\\s*[\\p{Punct}*\\s+]\\s*");
        catch (FileNotFoundException fnfe) {
            JOptionPane.showMessageDialog(this,"Could not open the file");
           System.exit(-1);
         while (scanner.hasNext()) {         
              dictionary=scanner.next();
              if (!dictionary.equals(""))
                 outputDictionary.append(dictionary.toLowerCase()+"\n");
            System.out.println("Thank you, your dictionary is stored.");
    public void storeOpenFile(File openFile){
        String word="";
        Scanner scanner2 = null;
        try {
            // Delimiters specifiy where to parse tokens in a scanner
           scanner2 = new Scanner(openFile).useDelimiter("\\s*[\\p{Punct}*\\s+]\\s*");
        catch (FileNotFoundException fnfe) {
            JOptionPane.showMessageDialog(this,"Could not open the file");
           System.exit(-1);
        //stores the words in the opened text file in a String array
         while (scanner2.hasNext()) {         
              word=scanner2.next();
                 if(!word.equals(""))
                        outputWord.append(word.toLowerCase()+"\n");
        System.out.println("Thanks, your file has successfully been opened.");
    public static void main(String args[]) {
       Spell spellck = new Spell();
       spellck.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

    Yes, he actually recommends us to use java 1.5. I have revised my code to read into a TreeSet from the dictionary.txt, but I keep getting the following error when I compile:
    Note: C:\Jwork\spell1.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Finished spell1.
    Also, when I execute, nothing happens. It looks like it is going to try to do something, but the "open" dialog box never opens and no errors pop up. It just sits there executing. Any suggestions??
    here is the code:
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    //  Created Sept 4, 2004
    *   @version 1.0
    *   This program will store dictionary.txt to a String array and
    *   open another text file to be specified by the user of the program.
    *   As the scanner proceeds through the document, it will spell check
    *   and output any (case insensitive) words not found in the
    *   dictionary.txt file.
    public class spell1 extends JFrame{
        JTextArea output = new JTextArea(500,500);
        Set dict = new TreeSet();
        Set file = new HashSet();
        public spell1(){
        Set dict = new TreeSet();
        Set file = new HashSet();
        //Prompts user for the dictionary.txt file
        JFileChooser dictionary = new JFileChooser();
        JFileChooser wordFiles = new JFileChooser();
        int returnVal = dictionary.showOpenDialog(this);
         if (returnVal == JFileChooser.APPROVE_OPTION) {
         storeDictionary(dictionary.getSelectedFile());
        int returnVal2 = wordFiles.showOpenDialog(this);
            if (returnVal2 == JFileChooser.APPROVE_OPTION){
                storeFile(wordFiles.getSelectedFile());
        public void storeDictionary(File dictionaryFile){
            String dictionary="";
         Scanner scanner=null;
        try {
           // Delimiters specifiy where to parse tokens in a scanner
           scanner = new Scanner(dictionaryFile).useDelimiter("\\s*[\\p{Punct}*\\s+]\\s*");
        catch (FileNotFoundException fnfe) {
            JOptionPane.showMessageDialog(this,"Could not open the file");
           System.exit(-1);
         while (scanner.hasNext()) {
              if (!dictionary.equals(""))
                 dict.add(scanner.next());
            System.out.println("Thank you, your dictionary is stored.");
        public void storeFile(File wordFile){
            String word="";
            Scanner scanner2=null;
        try{
            scanner2 = new Scanner(wordFile).useDelimiter("\\s*[\\p{Punct}*\\s+]\\s*");
        catch (FileNotFoundException fnfe){
            JOptionPane.showMessageDialog(this,"Could not open the file");
            System.exit(-1);
            while(scanner2.hasNext()){
                if(!word.equals(""))
                    file.add(scanner2.next());
        public static void main(String args[]){
            spell1 spellck = new spell1();
            spellck.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }

  • Text file storing in a database table

    I have a text file, that contains so many lines in it,..
    Now the problem is that.. I want to store my text file with the pl/sql code in a database table....
    plz suggest, how to create a table and how to store that text file in a database table.....

    The following code is tested and get the correct result (forms 10.1.2.0):
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> create table tclob  (col_lob clob);
    Table created.
    Declare
      file  TEXT_IO.FILE_TYPE;
      text  varchar2(10000);
      L$Clob CLOB;
    Begin
      -- prepare CLOB object --
      dbms_lob.createtemporary( L$Clob, TRUE ) ;
      -- open text file --
      file := TEXT_IO.FOPEN( 'c:\forms.css', 'R' ) ;
      If TEXT_IO.IS_OPEN( file) Then
        -- start reazding file --
         Begin
           Loop
             TEXT_IO.GET_LINE( file, text );
             -- add the line to the CLOB variable --
                dbms_lob.writeappend (L$Clob, length(text), text);
           End loop;
        Exception
          when no_data_found then
            -- end of text file --
            TEXT_IO.FCLOSE(file);
          when others then
           null;
        End ;
        -- store the CLOB in the database --
        --Update tclob Set col_lob = L$Clob ;
        insert into tclob (col_lob) values (L$Clob);
        forms_ddl('commit');
           dbms_lob.freetemporary( L$Clob ) ;
      End if ;
    exception
         when others then
         message(error_code || '-' || error_text);
    End;Francois

  • Parsing text files

    I have written a vi that parses data out of text files which makes use of the open text file vi. When I compile the vi to run as a stand alone application, The open file dialogue will only accept .vi files for opening. Why is this?
    Thanks,
    Russ T.

    Without looking into your program, I am going to guess the following:
    If you are using Open/Create/Replace File.vi, wire in "*.txt" to Pattern.
    Hope that helps.
    Shan Pin Koh
    Systems Engineer
    Oakriver Technology

  • How to open different files depending on the case

    Hi
    I have 3 cases within a case structure.
    When I select a first case, I need a certain VI to start.(I have done this by just dragging the VI within that case)
    But when I select the 2nd case, I need to an executable file to pop up, but I am not able to drag it within the case structure beacuse when I select something other than a than a vi, it gives me the follwing error.
    LabVIEW: File is not a resource file
    The file Test.exe cannot be loaded.
    Also, I need to open a text file, if I choose the 3rd case. I am not able to this also, as I end up getting the same error.
    Can someone help me to solve this problem?
    Thanks in advance
    Solved!
    Go to Solution.

    To call an executable you will have to use "System Exec.vi"
    To open text file you can use same "System Exec.vi" and give path of text file to open to "Command Line" input of the vi.
    Read help file so as to understand the function of "System Exec.vi"
    Gaurav k
    CLD Certified !!!!!
    Do not forget to Mark solution and to give Kudo if problem is solved.

  • Open txt file in CV02n for URL path

    Hi
    I  stored atachment Text file in SAP content server for SRM SC document.
    and i have below HTTP url.
    http://1xxxxxxxx:1090/ContentServer/ContentServer.dll?get&pVersion=0046&contRep=BBPFILESYSTEM&docId=E03E3F4E929E9BF1B4100026B98BDDE2&compId=linknew.TXT
    I want to open the file in notepad from CV02N without opening browser. How to do this.
    I used data carrier INTERNET and TYPE as UR, In this case its opening browser and opening text file.
    But i dont want to open browser, instead i want to open only text file.
    I already did customizing in ERP system for TXT file and if i checkin text file in CV02N i am able to open it in notepad.
    simmilarly i want to open URL path file also.
    Pls sugges me how to do this
    Regards
    Chandra
    Edited by: princeck on Feb 24, 2011 10:09 AM

    Make sure the filename has an absolute path. If the path is relative it will point to a different location depending on where you run the program from.
    When you run it from within Xcode itself the binary is buried way inside the project hierarchy (you can see where it is by selecting the program in the  Products folder and doing a Show in Finder).
    The safest bet is to always specify a specific directory for any writes you do.
    regards
    As an example for this program in Xcode (assumoing you will be able to see the images)
    The binary is located here

Maybe you are looking for

  • NetWeaver ABAP AS 7.02 - Import ABAP phase

    Hi all, I encountered the following problem during the installation on Windows 2003 Server on a Compaq 6710b. Problem seems to be related to java memory Xmx1024m that is too high, how can I solve this issue? I found many posts that suggest to decreas

  • Can't back out of uploading a partner solution

    Team, When I went to play with this feature, I couldn't figure out how to back out.  Also, I'm not usre, but is there a way to start and complete the entry later? Thanks! Davdi

  • Logistic Cockpit Customizing Error - Application 11

    Hi, We are trying to trasnfer one existing field in MCVBKD ( part of 2LIS_11_VAITM), which is already present in MCVBKD on RHS to LHS. But we are facing the following error "entries for application 11 still exists in the queue". even though - there a

  • I cant print over my wifi network with Yosemite

    Hi, I've just installed OS X 10.10 on my Macbook Pro and my wife's Macbook Air and we've lost our printers on the wifi network. Internet seems to be working fine over the wifi (120 mb/s) and if i plug the computers in to the LAN connections on the ro

  • LabVIEW 2011 Development System fails to install

    I have just tried several times to install my new copy of LabVIEW 2011 Dev Suite, but get an unknown exception (with no details - see attached picture) right at the start of installing the development system (English 32-bit).  I have rebooted and clo