Need to form a txt file

Hi Guys
  i have a txt file ,the contect as below
=====================
APPData-CADD_RO_CNZJ
APNET\USER1
APNET\USER2
APPData-CADD_RW_CNZJ
APNET\USER3
APNET\USER4
=========================
what i want was to conver it to a csv file like , can this possible ?
APPData-CADD_RO_CNZJ   APNET\USER1
APPData-CADD_RO_CNZJ   APENT\USER2
APPdata-CADD_RW_CNZJ   APNET\USER3
APPdata-CADD_RW_CNZJ   APNET\USER4

Please don't cross post in the Flash forums.

Similar Messages

  • Reading an entry form a txt file in unix from Forms50

    Hello all,
    In the windows version D2k there is a pll in the
    demo.d2kwutil.pll, this pll can be used to read/writ from/to ini
    files
    and registry strings.
    Can anybody tell me if there is a similar feature in the UNIX
    version to read/write entries from/to a text file. Also Is there
    a package for working with environment settings.
    Thanks,
    Sunder
    null

    It you want to read/write to the client side use text_io.
    If you wnat to read/write to the server side use utl_file.
    Petr Valouch (guest) wrote:
    : Sunder (guest) wrote:
    : : Hello all,
    : : In the windows version D2k there is a pll in the
    : : demo.d2kwutil.pll, this pll can be used to read/writ from/to
    : ini
    : : files
    : : and registry strings.
    : : Can anybody tell me if there is a similar feature in the UNIX
    : : version to read/write entries from/to a text file. Also Is
    : there
    : : a package for working with environment settings.
    : : Thanks,
    : : Sunder
    : Hi,
    : In all system you can use TEXT_IO build-in package to
    : read/write form/to text files.
    : Petr Valouch
    null

  • You need to save a txt file

    Does 10.7 offer a clue or button in the menu bar that you need to save the file?

    Yes, if you close the window or choose to Save it a dialog box should appear?
    Choices on "File" menu.

  • (Urgent help needed) how to read txt file and store the data into 2D-array?

    Hi, I have a GUI which allow to choose file from the file chooser, and when "Read file" button is pressed, I want to show the array data into the textarea.
    The sample data is like this followed:
    -0.0007     -0.0061     0.0006
    -0.0002     0.0203     0.0066
    0     0.2317     0.008
    0.0017     0.5957     0.0008
    0.0024     1.071     0.0029
    0.0439     1.4873     -0.0003
    I want my program to scan through and store these data into 2D array.
    However for some reason, my source code issues errors, and I don't know what's wrong with it, seems to have a problem in StringTokenizer though. Can anybody help me?
    Thanks in advance.
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.StringTokenizer;
    public class FileReduction1 extends JFrame implements ActionListener{
    // GUI features
    private BufferedReader fileInput;
    private JTextArea textArea;
    private JButton openButton, readButton,processButton,saveButton;
    private JTextField textfield;
    private JPanel pnlfile;
    private JPanel buttonpnl;
    private JPanel buttonbar;
    // Other fields
    private File fileName;
    private String[][] data;
    private int numLines;
    public FileReduction1(String s) {
    super(s);
    // Content pane
         Container cp = getContentPane();
         cp.setLayout(new BorderLayout());     
    // Open button Panel
    pnlfile=new JPanel(new BorderLayout());
         textfield=new JTextField();
         openButton = new JButton("Open File");
    openButton.addActionListener(this);
    pnlfile.add(openButton,BorderLayout.WEST);
         pnlfile.add(textfield,BorderLayout.CENTER);
         readButton = new JButton("Read File");
    readButton.addActionListener(this);
         readButton.setEnabled(false);
    pnlfile.add(readButton,BorderLayout.EAST);
         cp.add(pnlfile, BorderLayout.NORTH);
         // Text area     
         textArea = new JTextArea(10, 100);
    cp.add(new JScrollPane(textArea),BorderLayout.CENTER);
    processButton = new JButton("Process");
    //processButton.addActionListener(this);
    saveButton=new JButton("Save into");
    //saveButton.addActionListener(this);
    buttonbar=new JPanel(new FlowLayout(FlowLayout.RIGHT));
    buttonpnl=new JPanel(new GridLayout(1,0));
    buttonpnl.add(processButton);
    buttonpnl.add(saveButton);
    buttonbar.add(buttonpnl);
    cp.add(buttonbar,BorderLayout.SOUTH);
    /* ACTION PERFORMED */
    public void actionPerformed(ActionEvent event) {
    if (event.getActionCommand().equals("Open File")) getFileName();
         if (event.getActionCommand().equals("Read File")) readFile();
    /* OPEN THE FILE */
    private void getFileName() {
    // Display file dialog so user can select file to open
         JFileChooser fileChooser = new JFileChooser();
         fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
         int result = fileChooser.showOpenDialog(this);
         // If cancel button selected return
         if (result == JFileChooser.CANCEL_OPTION) return;
    if (result == JFileChooser.APPROVE_OPTION)
         fileName = fileChooser.getSelectedFile();
    textfield.setText(fileName.getName());
         if (checkFileName()) {
         openButton.setEnabled(false);
         readButton.setEnabled(true);
         // Obtain selected file
    /* READ FILE */
    private void readFile() {
    // Disable read button
    readButton.setEnabled(false);
    // Dimension data structure
         getNumberOfLines();
         data = new String[numLines][];
         // Read file
         readTheFile();
         // Output to text area     
         textArea.setText(data[0][0] + "\n");
         for(int index=0;index < data.length;index++)
    for(int j=1;j<data[index].length;j++)
    textArea.append(data[index][j] + "\n");
         // Rnable open button
         openButton.setEnabled(true);
    /* GET NUMBER OF LINES */
    /* Get number of lines in file and prepare data structure. */
    private void getNumberOfLines() {
    int counter = 0;
         // Open the file
         openFile();
         // Loop through file incrementing counter
         try {
         String line = fileInput.readLine();
         while (line != null) {
         counter++;
              System.out.println("(" + counter + ") " + line);
    line = fileInput.readLine();
         numLines = counter;
    closeFile();
         catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error reading File",
                   "Error 5: ",JOptionPane.ERROR_MESSAGE);
         closeFile();
         System.exit(1);
    /* READ FILE */
    private void readTheFile() {
    // Open the file
    int row=0;
    int col=0;
         openFile();
    System.out.println("Read the file");     
         // Loop through file incrementing counter
         try {
    String line = fileInput.readLine();
         while (line != null)
    StringTokenizer st=new StringTokenizer(line);
    while(st.hasMoreTokens())
    data[row][col]=st.nextToken();
    System.out.println(data[row][col]);
    col++;
    row++;
    closeFile();
    catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error reading File",
                   "Error 5: ",JOptionPane.ERROR_MESSAGE);
         closeFile();
         System.exit(1);
    /* CHECK FILE NAME */
    /* Return flase if selected file is a directory, access is denied or is
    not a file name. */
    private boolean checkFileName() {
         if (fileName.exists()) {
         if (fileName.canRead()) {
              if (fileName.isFile()) return(true);
              else JOptionPane.showMessageDialog(null,
                        "ERROR 3: File is a directory");
         else JOptionPane.showMessageDialog(null,
                        "ERROR 2: Access denied");
         else JOptionPane.showMessageDialog(null,
                        "ERROR 1: No such file!");
         // Return
         return(false);
    /* FILE HANDLING UTILITIES */
    /* OPEN FILE */
    private void openFile() {
         try {
         // Open file
         FileReader file = new FileReader(fileName);
         fileInput = new BufferedReader(file);
         catch(IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error Opening File",
                   "Error 4: ",JOptionPane.ERROR_MESSAGE);
    System.out.println("File opened");
    /* CLOSE FILE */
    private void closeFile() {
    if (fileInput != null) {
         try {
              fileInput.close();
         catch (IOException ioException) {
         JOptionPane.showMessageDialog(this,"Error Opening File",
                   "Error 4: ",JOptionPane.ERROR_MESSAGE);
    System.out.println("File closed");
    /* MAIN METHOD */
    /* MAIN METHOD */
    public static void main(String[] args) throws IOException {
         // Create instance of class FileChooser
         FileReduction1 newFile = new FileReduction1("File Reduction Program");
         // Make window vissible
         newFile.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         newFile.setSize(500,400);
    newFile.setVisible(true);
    Java.lang.NullpointException
    at FileReductoin1.readTheFile <FileReduction1.java :172>
    at FileReductoin1.readFile <FileReduction1.java :110>
    at FileReductoin1.actionPerformed <FileReduction1.java :71>
    .

    1) Next time use the CODE tags. this is way too much unreadable crap.
    2) The problem is your String[][] data.... the only place I see you do anything approching initializing it is
    data = new String[numLines][];I think you want to do this..
    data = new String[numLines][3];anyway that's why it's blowing up on the line
    data[row][col]=st.nextToken();

  • Remove "zeros" form a txt file created by Labview

    Hi everyone,
    I got a problem with my txt data and I hope somebody will help here.
    I'm doing measuremnts and I'm saving the data in a txt. 
    The saved data look like that:  0.000000
                                                     1.743435
                                                     2.899894
    My question

    duplicate post
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How do I add a txt file to read from in the following script

    First thanks for the help, PS newbie. 
    I need to add a txt file that has the Exchange aliases listed to the below file. So if the .txt file is sitting in c:\temp\readme.txt how do I incorporate into the following script. Given, I only want the outcome to read from only the txt file. 
    $mailboxes = Get-Mailbox -RecipientTypeDetails UserMailbox
    ForEach ($mailbox in $mailboxes) {
      $FilePath = "\\server\folder\" + $mailbox.PrimarySmtpAddress.Local + "@" + $mailbox.PrimarySmtpAddress.Domain + ".pst"
      New-MailboxExportRequest -mailbox $mailbox -FilePath $FilePath
    Thank you for your time. 
    Chris

    Thank you - 
    You're welcome.
    I need to make sure that when the user from the list is exported to .pst it is named with their primary smtp address? Will the above code do so?
    No, it won't. This adjustment will take that into account:
    $aliasList = Get-Content .\aliasList.txt
    foreach ($alias in $aliasList) {
    $mbx = Get-Mailbox $alias
    $filePath = "\\server\folder\$($mbx.PrimarySmtpAddress).pst"
    New-MailboxExportRequest -Mailbox $alias -FilePath $filePath -WhatIf
    Don't retire TechNet! -
    (Don't give up yet - 13,085+ strong and growing)

  • Assistance in Reading a .txt file

    I'm newbie on Java and I have a problem
    I'm doing a homework on Systems and I need to read a .txt file [It would be on the same folder as the Java file].
    The catch is that I have to read by Lines, Each Line could have as much as 3 words[tokens] as little as one.
    I also have to read the characters on the words/tokens to identify if they are valid.
    I have thought of 2 ways of doing this.
    Reading ALL the line and dividing the words by the Spaces.
    Or read the words by tokens and then having a flag to know when the line jumps.
    Example of the text file:
    ORG %011010
    Et1 equ $ffFF
    ;Comentary # 1
    dos LDAA @456
    END
    I hope I'm being clear.
    Now, I'm not looking to have my homework done for me, but I am looking for some pointers.
    I've tried the Scanner class but I just don't know the right methods I guess... I've also heard the Token StringTokenizer class works. But I have no clue.
    Someone could give me pointers? which Class would be the right one and which methods?
    I've been Struggling with this all week.
    Help will be really appreciated.

    I would use the Scanner class to read an entire line. If you don't know what methods to use then read the Java API and the explanation for each method of the Scanner class. Write some code to experiment and see what those methods do. Then when you have an entire line I would use String.split as StringTokenizer is/has been deprecated.

  • Open all TXT files in Ultraedit

    Currently from the below code I am able to open a new empty file in ultraedit. But I need to open all *.txt files from a particular directory in ultraedit. Could anyone please help me with this.
    private void ueditButActionPerformed(java.awt.event.ActionEvent evt)
         java.awt.EventQueue.invokeLater(new Runnable()
              public void run()
                   try
                        Process procViewEd =Runtime.getRuntime().exec("C:\\Program Files\\UltraEdit\\UEDIT32.EXE ");
                   catch(IOException ioe)
                        System.out.println(ioe.getMessage());
    } For instance, when I click on ueditBut, all the txt files inside the path c:\temp should open in ultraedit.
    Message was edited by:
    Simmy
    Message was edited by:
    Simmy

    As an example, this code opens all of the .java files in the current directory using notepad:import java.io.*;
    public class Test {
        public static void main (String... parameters) throws IOException {
            File currentDir = new File (".");
            File[] javaFiles = currentDir.listFiles (new FilenameFilter () {
                public boolean accept (File parent, String filename) {
                    return filename.endsWith (".java");
            for (File javaFile: javaFiles) {
                Runtime.getRuntime ().exec (String.format ("cmd /c notepad %s", javaFile.getAbsolutePath ()));
    }

  • Scanning .txt file and outputting results?

    Greetings Everyone. My employer has charged me with a rather
    confusing task. Basically I need to scan a .txt file and retrieve
    some information from it. Here is a little background on the file
    itself.
    This is a feed file containing the information for employees
    such as name, department, employement status etc...Zeros are used
    in place of spaces in this file. What I am charged with is
    retrieving the employment status and name for every single person
    in the file (60,000+).
    I need to write a coldfusion script that can do the
    following.
    1. Scan a .txt file that is sent to me every night and look
    for the 99th character on each line of the .txt file
    2. If the 99th character is a 'T' I need to pull characters
    '10-50' (which contain the name for that person).
    3. Output the results of the scan to a coldfusion page
    displaying the individuals' names.
    If anyone out there can point me in the right direction I
    would be very grateful. I've been looking for websites on this
    topic but I have been unsucessful so far. Should I post this in the
    advanced section of the cf forums? Once again, thank you for any
    help you can give me.

    I guarantee you can do this! And it shouldnt be to hard so
    you can breath a sigh of relief... :)
    I would use <cffile action="read" file="filepath/name.txt"
    variable="fileContents">
    Then you should be able to do something like <cfset
    fileArray = ListToArray(fileContents, "#CHR(13)##CHR(10)#")>
    Now you have an array so you can loop through and try
    something like the following...
    <cfloop index="i" from="1" to="#ArrayLen(fileArray)#"
    step="1">
    <cfif fileArray
    NEQ "">
    <!--- Find 99th Char --->
    <cfset 99thchar = Mid(fileArray, 99, 1)>
    <cfif 99thchar EQ "T">
    <!--- Get Name --->
    <cfset empName = Mid(fileArray
    , 10, 40)>
    <!--- Change 0's to Spaces--->
    <cfset empName = Replace(empName, "0", "#CHR(32)#")>
    <cfoutput>#empName#</cfoutput><br />
    </cfif>
    </cfif>
    </cfloop>
    That should be close to what you could use... You may have to
    tweak it a bit... now if it is going though 60000+ records this may
    take a while...lol You might have to use the cfsetting tag to
    extend the normal request timeout..
    Hope this helps!

  • TXT file

    Hi experts,
    I need to create a TXT file in the server. I'm using the command open dataset for output and TRANSFER for this. My problem is the format in the txt File.
    Example:
    The system is generating this format:
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    I need that the system generate this format:
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    How can I do this???
    Great,

    Hi Marcelo,
    If you say TRANSFER ... whatever you specified to transfer is transferred at a stretch in to the file of application server....
    So you cannot break your single transfer statement...
    If you want in that way... you first split your sentence and specify two TRANSFERS....
    Or check this way..........
    You can specify the length of the data you want to transfer using the LENGTH addition.
    The system then transfers the first <len> bytes into the file.
    If <len> is too short, excess bytes are truncated.
    If <len> is greater than the length of the field, the system adds trailing blanks.
    Hope this would help you...
    Regards
    Narin Nandivada
    Edited by: Narin Nandivada on Jul 3, 2008 10:40 PM

  • BTE - After FI Customer invoice posting - save txt file

    Hi Experts,
    If I need to generate a txt file after the posting of a FI Customer Invoice, what BTE should I use? A P/S? or a process?
    What about if the txt needs to be generated after the number has been assigned, but before the document is posted?
    Can I use 1025 and 1030?
    If you can suggest alternative BTE's number, would be great.
    Many thanks!
    Mario.

    hi,
    check this
    i hope it will help you.
    BAPI_CUSTOMEREXPINV_CREATEMUL
    <b><i>Rewardpoints if useful</i></b>

  • OT: Open .txt files on PC

    What program is needed to open a .txt file on the PC
    platform?
    I've got to save some text from a Mac and provide it to a PC
    user/s. I
    can't be bothered to paste into Word (which is on my other
    Mac) and save
    as a .doc file (means transferring files back and forth)
    So me question is if I supply .txt files to a PC user can
    they open it
    easily?
    Cheers.
    Os.

    Notepad
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Osgood" <[email protected]> wrote in
    message
    news:glsf5a$6t1$[email protected]..
    > What program is needed to open a .txt file on the PC
    platform?
    >
    > I've got to save some text from a Mac and provide it to
    a PC user/s. I
    > can't be bothered to paste into Word (which is on my
    other Mac) and save
    > as a .doc file (means transferring files back and forth)
    >
    > So me question is if I supply .txt files to a PC user
    can they open it
    > easily?
    >
    > Cheers.
    >
    > Os.

  • Import a txt file from a location into the table through toad

    Hi,
    I have a location which is mounted on my oracle database.
    i have made one directory of that location.
    I need to load one .txt file present on that mapped location with the help of toad.
    My delimiter is ' | ' .
    Please help me out.
    Thanks

    The environment you described (and your intensions if I got it right) seems to call for a solution using External Tables (see Managing Tables)
    You shouldn't have any problems using TOAD.
    Regards
    Etbin

  • Spaces are not and end of TXT file in 4.6.C

    Hi:
    I need to create a TXT file with a length of 240 characters, but spaces are not at end of file. I need them to export file to another system.
    I have looking for in forum  a solution for this problem, but solutions like using respecting blanks or cl_abap_char_utilities are not available in 4.6.C.
    I use GUI_DOWNLOAD function with all options but it does not work.
    Do you know a way to solve this problem in this release?
    Thanks in advance for you answers.
    Regards.

    Hello
    Please use the below code snippet to get the space in 46c.
    DATA: LV_space TYPE X VALUE '20'.
    DATA: LV_EXP TYPE C.',
    FIELD-SYMBOLS: <f_tab> TYPE ANY.
    ASSIGN LV_space TO <F_TAB> CASTING TYPE C.
    LV_EXP = <F_TAB>.
    Now LV_EXP will hold the ascii equivalent of space.
    Other option is to declare a constant and having the defaulting the value by holding the ALT + 0160 keys from your numpad.
    Regards
    Ranganath

  • Txt File Need to send to Bank

    Hi,
    I need to send text file to bank( in Mexico) for direct deposit to vendor accounts in Mexico ( from Mexico company code ) . Could you please let me know what are steps need to be done for F110.
    Thanks

    Chandu,
    First of all, you have to get from your Bank the format of the txt file that they expect. This format should explain in detail all the records (rows) in the file, and each field (data) in each of those records - what is the format of each (numeric / alphanumeric), the length, whether it has decimals or not, etc. - basically the way you see tables / structures defined in txn. SE11.
    Second, you have to configure the Payment Medium Workbench (PMW), which is a tool used to configure and create payment media sent by organizations to their house banks. The payment medium in your case is the txt file.
    You can go through the [Online documentation here|http://help.sap.com/saphelp_erp60_sp/helpdata/en/cb/4104aadf2b11d3a550444553540000/frameset.htm]. Note that you might have to create a custom program to generate the file in the format you / your bank desire. You can use the Data Medium Exchange Engine (DMEE) to define file formats that meet the requirements as specified by your Bank. By doing so, you model an externally defined bank format in the SAP system, which then allows you to send or receive data in the form of DME files in this format.
    Trust this will help you proceed in the right direction.
    Regards
    Gulshan

Maybe you are looking for

  • Another consildating question!!!

    Hi, I have a downloaded music folder, which contains all music that I have downloaded through file sharing. These songs are not in my iTunes library. My iTunes library only contains my CD collection and music purchased on iTunes. I don't want to comb

  • How can I get rid of iOS 7?

    How can I get rid of iOS 7?

  • OCR and votingdisk

    I believe that voting disk and CRS has to be raw devices.. can we create OCR and votingdisk in directories. in RAC ? check here db1:/oradata/d01/CRS$ crsctl query css votedisk 0. 0 /oradata/d01/CRS/VOTE 1. 0 /oradata/d01/CRS/VOTE 2. 0 /oradata/d01/CR

  • Invalid codepage error for translation using SE63!!

    Hi Friends, I have a problem with Smartform translation.  I have a smartform in English , I have to have some of the hardcoded texts to be in Russian. I have the Russian translations for the same. In the attributes of the form I have made sure it all

  • Download unsuccessful message when I try to download an ebook to my PRS-T3 from Kobo or public library.

    I bought a new PRS-T3, installed all the new software using the new Reader for PC software on my Windows-7 system. I can sideload ebooks from my PC to the PRS-T3, but I can't download ebooks directly to the PRS-T3 via my home wifi connection. When I