How to create file in directory

Hello.
I have one file in which are names and numbers like:
name_01
name_02
name_03
Now i want to cut numbers from names and put them in another file so i can check which number is the highest.
How can i do that?
Thanks

Are you running client/server or web..also what version? If you are on trhe web and this is client side manipulation then the webutil package will help.
See otn.oracle.com/products/forms and click on webutil.
Regards
Grant Ronald
Forms Product Management

Similar Messages

  • How to create file on application server?

    how to create file on application server?

    Hi,
    The following program illustrates the creation of ifle in app server and reading the file from appli server:
    DATA: ITAB LIKE vbakOCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_VBELN LIKE VBAP-VBELN.
    START-OF-SELECTION.
      SELECT *
        FROM VBAP
        INTO TABLE ITAB
    WHERE VBELN = P_VBELN
        PERFORM WRITE_DATA.
        PERFORM READ_DATA.
    *&      Form  WRITE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA.
    OPEN DATASET 'VBAP_DATA' FOR OUTPUT IN TEXT MODE.
    LOOP AT ITAB.
    TRANSFER ITAB TO 'VBAP_DATA'.
    ENDLOOP.
    CLOSE DATASET 'VBAP_DATA'.
    CLEAR: ITAB, ITAB[].
    ENDFORM.                    " WRITE_DATA
    *&      Form  READ_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA.
    OPEN DATASET 'VBAP_DATA' FOR INPUT IN TEXT MODE.
    DO.
    READ DATASET 'VBAP_DATA' INTO ITAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    APPEND ITAB.
    ENDDO.
    CLOSE DATASET 'VBAP_DATA'.
    LOOP AT ITAB.
    WRITE:/ ITAB-VBELN,
            ITAB-POSNR.
    ENDLOOP.
    ENDFORM.                    " READ_DATA
    If it is helpful rewards points
    Regards
    Pratap.M

  • How to create file menu in the swing?

    How to create file menu or any menu in the swing?
    Please help me.

    How to create file menu or any menu in the
    swing?
    Please help me.By file menu, do you mean where you can choose a file to open or save to? If so, have you had a look at the File Chooser component? If not, please click on the link in the previous sentence to the Sun tutorial.
    Good luck
    /Pete

  • How to create file with APDU

    Hello everybody,
    It's my first time using Java Card ^_^,I want to create a file and fill the fill with binary data.but i don't know how to create file with APDU commands,so I need help here.
    I think that there must be a Manual of the JavaCard's OS in this world,can someone tell me where to download it??
    Thanks.
    the fllowing is my card:
    Samsung S1
    Model:TiEx-32J
    EEPROM size:32k
    Platform Version:OP 2.0.1
    Card Manager Status:OP_READY
    KMC:40~4F/No derivation
    Message was edited by:
    AllenHuang

    If you look around the forum for a bit, you will see that there is no notion of file systems on JavaCards (lexdabear posted this information less than two hours ago :-)). To store files, you will have to write an applet to hold byte arrays of the required size and handle receiving and sending of these.
    As for documentation, you should have a look at the GP (General Platform) specification at http://www.globalplatform.org/, which defines communication between smart cards and other devices, as well as Sun's own JavaCard pages (http://java.sun.com/products/javacard/), which contain several useful resources on JavaCards.
    Message was edited by:
    Lillesand

  • How to create all Integration Directory with Directory API

    How to create all Integration Directory
    elements (Receiver determination, Interface Mapping, Communication channel Etc ) using Directory API
    Can we upload multiple elements in ID from list in Excel sheet

    Take a look to this "How TO", can be really helpful for your requirements:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0336199-d3c7-2c10-c983-f8a945a4588c?QuickLink=index&overridelayout=true

  • How to create file system datagrid in flex web application

    how to create file system datagrid in flex web application

    Hi,
    Check this out:
    http://shigeru-nakagaki.com/flex_samples/FileReference/FileUploadExample2/FileUploadExampl e2.html
    Johnny
    Please rate answer.

  • How to create the decisionservices directory

    how to create the decisionservices directory? i have created a decisionservice (using the wizard) in my bpel project but there is no decisionservices directory...

    Hi,
    We're hiding the decisionservice directory structure in the JDEV application navigator.
    A user is not supposed to do modifications in that directory, it's pretty much deployment
    artifacts only.
    Can you elaborate on why you want to see that in the application navigator ?
    Regards,
    Ralf

  • How to create a virtual directory using EPG

    Hi,
    Can anyone tell me how to create a virtual directory in the EPG that points to a physical directory in the database server?
    Thanks,
    Andrew.

    You can create an Oracle directory that points to an operating system directory in the database product... Does that help?
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

  • How to create file form servlet in our virtual directory

    hi....
    I want to create a file form my servlet in my virtual directory..
    my directory name ia vps
    it cconatin vps -> WEB-INF -> classes-> servTest
    servTest is servlet....
    and i want to create file from servTest in vps directory..
    actually i am trying to create file but it by default saved in windows/system32 directory.

    You need to give the absolute path to create the file, if you just give the filename, the file will be created in the working directory which is system32 for Windows.
    You could either hardcode it, or you can use ServletContext.getRealPath("/") ( http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String) ) This will return the path on the server's filesystem where your application folder ( under webapps for Tomcat) is located.
    NOTE: If you application is in the form of a .war file, this may not work! The server may return a null.
    "/" specifies the root i.e., your application's highest level directory. If your application is webapps/vps then getRealPath("/") will return something like C:\Program Files\Apache Group\Tomcat 4.1\webapps\vps

  • Permission to create file in directory

    Hi all,
    I want to check permission in directory. ie. if user have permission to create a file in directory.
    how can i check this.
    for testing i wrote this program and i disabled all permissions for user (like read, write ) from security tab of directory properties.
    so i was not able to open the directory
    but it seems that canRead and canWrite are not working
    public class Check {
          * @param args
         public static void main(String[] args) {
              File s = new File("c:/testing/thisdir");
              if (s.exists() && s.isDirectory()) {
                   System.out.println("exists");
                   if(s.canRead()&& s.canWrite()){
                        System.out.println("read n write possible");                    
                   }else{
                        System.out.println("read n write impossible");
              } else {
                   System.out.println("does not exists");
    Output :
    exists
    read n write possibleAny comments why its so...

    hi dcminter ,
    just now changed the code ... and rechecked the permissions also ... and found that program is unable to write file inside directory...it throws following exception "java.io.IOException: Access is denied"
    but still
    canRead and canWrite method returns true ... i dont know why it is so
    public class Check {
          * @param args
         public static void main(String[] args) {
              try {
                   File s = new File("c:/testing/thisdir");
                   if (s.exists() && s.isDirectory()) {
                        System.out.println("exists");
                        if (s.canRead() && s.canWrite()) {
                             System.out.println("read n write possible");
                        } else {
                             System.out.println("read n write impossible");
                        File ss = new File("c:/testing/thisdir/a.txt");
                        ss.createNewFile();
                   } else {
                        System.out.println("does not exists");
              } catch (FileNotFoundException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              } catch (IOException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    }

  • How to create files with read/write privileges for everyone?

    I have two iMacs 7,1 (one with Snow Leopard and the other with Mountain Lion) in a local area wireless network.
    I have shared the "documents" folder in the Snow Leopard iMac in order to have files available to the other iMac. The folder has read/write privileges for everyone.
    When I create a new file in the shared "Documents" folder (for example a new Open office document, or a Keynote presentation) this file is by default "read/write" for the Administrator but only "read" for all the other users, so when I try to open it from the other iMac, I am informed that the file is "read only".
    I can obviously change the privileges of the file in the information window, but I have to do on a file per file basis and this takes too long.
    Is it possible to change settings in order to create files which are always "read/write" for everyone?
    And, secondly, since I have several existing files whose privileges I should manually change one by one, is it possible to make global changes of their privileges?
    Thanks in advance
    Best regards

    couple of different changes - 1st, if you want to share folders, doing your whole documents folder is not the best way.  Since both your computers can handle AidDrop, that's what I would recommend - http://osxdaily.com/2011/11/14/how-to-use-airdrop-in-mac-os-x/ - as it create an instant Ad-Hoc network between the two computers and then let's it done. 
    A second possibility that may not be what you're looking for, is to use google drive or some similay cloud sharing app to sync the documents back and forth.  both of these solutions will transfer the files well, but the airdrop may be simplest

  • How to Create a Temporary Directory?

    Hi,
    I'd like to create a directory with all of the
    nice properties that File.createTempFile gives
    you. However, it looks as though the only way to
    do this is to:
    File tfile = File.createTempFile("blah","", parent);
    tfile.delete();
    workingCopyDir = new File(tfile.getCanonicalPath());
    workingCopyDir.mkdir();
    What I'd like is either:
    File wcd = File.createTempFile("blah","",parent,true)
    where the 4th arg is a boolean "make a directory?"
    kind of arg...
    OR
    File tfile = new File(parent,File.createTempFileName())
    where createTempFileName returns a String.
    OR
    something else that is an equally good solution.
    Now, I've somewhat searched the archive on this but
    got slogged by the large number of hits. I've browsed
    the API and didn't see anything else that would work.
    Suggestions are welcome. Advice on a better place
    to send this suggestion would also be great...
    -Jen

    File tfile = File.createTempFile("blah","", parent);
    tfile.delete();
    workingCopyDir = new File(tfile.getCanonicalPath());
    workingCopyDir.mkdir();While it isn't as good a solution as File.createTempDirectory(), there are some steps in your code that you don't need to follow. You would be able to do the following:
    File tempDirectory = File.createTempFile("blah","blah", parent);
    tempDirectory.delete();
    tempDirectory.mkdir();
    After calling tempDirectory.delete(), tempDirectory still points to the name of the temp file, which can then be used directly to create the temp directory.
    This assumes nobody creates a temp file with the same name as the original temp file between "delete()" and "mkdir()". The likelihood of this happening is not high, but it is possible.

  • How to create file in specific folder...

    Hi developers,
    I am new to java. I would like to create file in some folder. But i am fail to create it. Can any body help me please..
    This is my code. It creates folder well...But file doesn't create.
    import java.io.*;
    public class file1
         public static void main(String ar[])
              File f = new File("c:\\ram");
              f.mkdirs();
              String pat = f.getAbsolutePath();
              File ffs = new File("c:\\ram.txt");
              System.out.println(pat);
    }With Regards
    sure...:)-

    Also, it's not clear where you want the file.
    You're making a directory C :\ram, but then you're talking about a file ram.txt that's right in C:
    Also, you can use / instead of doubling up the \ and it wil get converted properly.
    If I wanted to create a file C:\ram\ram.txt I'd do this:
    File parentDir = new File("C:/ram");
    File file = new File(parentDir, "ram.txt");
    parentDir.mkdirs();
    file.createNewFile();

  • How to create files into a NT authentication folder

    Hi all,
    I know how to create txt files on a local computer. But is it possible to create files into a NT shared folder on server machine which is user/password protected?
    thanks,

    Hi,
    try it with SAPFTP.
    look:
    - sample RSFTP004
    - <a href="/people/thomas.jung3/blog/2004/11/15/performing-ftp-commands-from-abap">FTP</a>
    Andreas

  • How to create File description in cost center planning (T Code -KE13)

    Hi,
    Experts,
    I am creating Cost center planning in KP06 and would like to create my own layout(File Description) using excel. e.g. 01_1P1_IDES1572_001IDES-1572 as this is the standard SAP file description. How to create my own this way as per my excel layout.
    Regards,
    Jagruti Collaco

    <b>Three steps:
    Identify or Create planning layout.
    Identify or Create planning profile.
    Create file description.</b>
    Next upload the data.
    Detailed Steps
    Identify or Create planning layout.
    Identify an existing standard layout or else
    Create planning layout through KP65 (you can also copy a standard and modify it)
    Identify or Create planning profile.
    Go to SPRO>Controlling>Cost Center Accounting >Planning>Manual Planning>Define user defined Planning Profiles.
    Create a new Profile. You will see nodes or folders on the left indicating General Controlling>Layouts for controlling> and Default parameters.
    <b>Choose the layout for controlling and enter the layout you chose in earlier step.
    Enable Integrated excel checkbox and overview (everything you can)
    Next, select the layout and double click on default parameters.</b>
    Enter a test data with cost center, elements, period, version, year. and save all. You may want to save the file as a model in your desktop with a different name say CCAPlan.csv. (You will notice, as you come out a new file description field that was blank earlier is now populated with a name like 01_1P1_(layout name)XXXXXX_Profile Name (XXXXX)
    Come out of the screens.
    Go to KP06, extras. excel upload via extras. or KE13

Maybe you are looking for

  • VBS Script to add and remove computers from a group

    Good Morning everyone I need some help, I need to develop a script with excel vb + to do the following:  I select a group of ad through a comboBox and that in another box I specify the computers, just below dde has 2 buttons to add or remove these co

  • Merge/create new space in pdf?

    I have one scanned magazine page which has an article (in German) on one side and an advertisement on the other. I wish to remove the advertisement and put in a blank space (so I can put in some translation to English). These are the various ways I h

  • Delivery date to be pricing date

    Is it possible in SAP standard configuration to have the billing date to be the actual delivery date as per the schedule line (automatically without carrying out new pricing) apart from it being the req. deliv. date.

  • How can I talk w/a real person for password support?

    and why do I continue to get a pop up screen saying "safari wants to use "login" key chain??  Help.

  • Encore not included with Premier CC

    I uninstalled Premier CS6 and Encore thinking that Premier CC would include Encore just as Premier CS 6.  Imagine my surprise that it did not and now I do not have Encore at all. I tried the steps in a blog article, http://http://blogs.adobe.com/davt