Need help with how to store data in array in from reading file

i have a file named xxx.txt
i need to retreive data from that file. the data that i want to retrieve is enclosed with << >>
temp xxx-123 ccc << 90.5>>
haha xxx-563 sss 85.2
after a few lines, the another record appear.
temp2 xxx-123 ccc << 190.5>>
haha2 xxx-563 sss 885.2
i would like to record down the data, 90.5 & 190.5, how do i go about doing so, will appreciated it if someone would guide me along. thanks

After you have read a line from the file either
find the location of << and >> and substring the stuff in between or
use regex (regular expression) however this is advanced and may be beyond your level of understanding.

Similar Messages

  • Need help with how to call VB proceedure to open Adobe reader pdf file from differnt folders

    Using  MS access 9.0.2720  visual basic proceedure to call Adobe reader to open a specific flle from a folder on my c drive.
    useing the shell command , shellexecute is not available in the version I'm using.
    I can call the Reader with this code:   call shell "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe"  and it will open reader, but
    I can't seem to get it to open a specific PDF file, I tried
    call shell "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" & "(folderpath)\.95.pdf"
    This use to work when I was running Xp and acrobat 5.0 , I am currentlt running windows 7
    thanks in advance..

    I am getting the exact error trying to down load bank statements but when I go to 'uncheck' the "Do not save encrypted page to disk" box it is ALREADY unchecked.  Can't get my bank statements down loaded.  Any other suggestions.  Need help quick.

  • Need help with how to reset bios and admin password to reformat hard drive in 8440p elitebook.......

    need help with how to reset bios and admin password to reformat hard drive in 8440p elitebook? removal of cmos, resetting laptop, using cccleaner, windows password recovery and hiren's was noneffective, any help is appreciated. thanks

    Hi,
    As your notebook is a business class machine, security is more stringent - the password is stored in non-volatile memory and there are no 'backdoor' passwords.  Your best option would be to contact HP regarding this.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest from itouch to laptop please??

    i have an itouch, most songs i got off my cd's. i have a new laptop and want to put songs from itouch to laptop.I can only get the songs that i purchased onto the laptop? need help with how to get the rest of the songs (from my cd's) from itouch to laptop please??

    See this previous discussion:
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • Need help with code for adding dates to form

    Hello forum goers
    I'm new to making forms and figured out how to auto add the date, however I need the form to change the date for every copy made.
    For example today is 06/08/2012 if I print 10 copies of the form it will output 10 pages ranging from 06/08/2012 to 06/17/2012. If code exists to do this I would be very gratefull to whoever helps, I also wouldn't mind if that is not possible for manually inputing the start / end dates.
    Currently I print 15-30 copies of the form and hand write each of the dates but I'm just getting to busy to do that. I also cannot print one a day it must be in batches.
    Thanks in advanced.

    What you are asking for is more complex than just setting the current date. Each time the form prints it has to know that it has to change the date. I would suggest doing this.
    First, setup a document level script to set the date to the current date. I suspect that you have already done this?
    Next, Create a "DidPrint" document action to increment the date.  To do this the script will need to scan the current text value of the date, add one day to it, and then reformat it.  You'll find information on this type of scripting in these articles:
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-2
    http://acrobatusers.com/tutorials/working-with-date-and-time-in-acrobat-javascr
    ipt-part-3
    Since the increment happenes in the Did Print you will need to print each copy individually. If you enter 10 copies in the print dialog it won't work. You have to print one at a time.  You can automate this activity with a console script.
    One of the advantages of incrementing in the DidPrint is that you can also manually enter a date and it will increment from there.
    Thom Parker
    The source for PDF Scripting Info
    pdfscripting.com
    The Acrobat JavaScript Reference, Use it Early and Often
    Then most important JavaScript Development tool in Acrobat
    The Console Window (Video tutorial)
    The Console Window(article)
    Having trouble, Why Doesn't my Script Work?

  • I am Creating a Kickstarter fund raising campaign video and need help with how to do it?

    I need help in putting together a 2-3 minute video for my Kickstarter fund raising campaign titled 1 YEAR, 10,000 PIECES, 1 ARTIST Live Streaming 24/7.  I only have images and voice to work with no video camera and I need as simple iMovie tutorial as possible since I have a brain injury disability, which means it takes me about 4 times longer then a person with an un-injured brain to put together something like this.
    Thanks for the help!
    Kris

    There are good video Tutorials for iMovie here (iMovie 09) http://www.apple.com/findouthow/movies/
    and here (iMovie 08) http://www.apple.com/findouthow/movies/imovie08.html.
    Also here is a good written Tutorial. http://www.kenstone.net/fcp_homepage/imovie_09_stone.html
    See especially this section of the Tutorial on adding Photos. http://www.kenstone.net/fcp_homepage/imovie_09_stone.html#photos
    Good luck.

  • Urgent-Need help with code for Master data enhancement

    hi Experts,
    I have appended YMFRGR field(Table MARC) to 0MAT_PLANT_ATTR datasource.
    The key fields in the MARC table are MATNR and WERKS.Can anybody help with the user exit to populate this field,as am pretty new to ABAP.
    Thanks in advance

    Hi,
    go through this link which has the similar problem:
    https://forums.sdn.sap.com/click.jspa?searchID=1331543&messageID=2794783
    hope it helps.
    Thanks,
    Amith

  • Help with Will Print - Current Date to apply to several hundred files

    Hello,
    So I've spent all morning trying to find a solution for my problem, but I know nothing about Javascript, and the more detailed answers I've found are that give step-by-step tips are for older versions of Adobe (I have Adobe Acrobat X Pro).
    My Situation: I have several hundred SOP PDFs that I wanted to add "Printed On: current date" and "Notice: Printed copies of SOPs are only valid for 30 days past "Printed On" date. Printed SOPs must be disposed of by confidential shredding." in the footer. These PDFs are then linked to our intranet where all employees open them to print.
    What I Did: I went to Tools>Pages>Add Header & Footer entered all the information, entered the "Insert Date" then clicked "Apply to multiple files" and thought that I had done everything. However, the date is not changing...it is staying on the date that I did the whole batch of files with the "apply to multiple files"
    What I have found is that evidently i need to do batch processing, with the will print java script to put the following code in (but i'm not sure if this code will put it in the footer?):
    var f = this.getField("Today");
    f.value = util.printd('dddd mmmm dd yyyy h:MM tt   ', new Date())
    but i have no idea where to get to batch processing, will print, etc.
    I can redo the apply to multiple files so that only the "notice" part will be on the right part of the footer, but can some nice forum person give step-by-step for dummies instructions on how to fix this so the date is current on the left part of the footer whenever someone opens the file?
    Thanks!
    Heather

    Right, so I did find the Actions section under tools....So I did Create New Action>More Tools>Execute Javascript
    Then I clicked on the little "Options" box, and all that pops up is an empty javascript window with "/* Put script title here */" Is that were I paste the code I had? Do I leave the /* or erase everything and put the code? Also, i don't see anything about adding a field....
    ...sorry to be dense about this, but this is way beyond anything i've attempted in acrobat. I do appreciate your help though.
    Also, what options will i want selected on the "start with" and "Save to" options...i don't want the end users to have to mess with any prompts or anything, will Start With > a file open in acrobat run the script as soon as that file is opened via the intranet? Also, i'm assuming i then want "don't save changes" so the date will always change? Thanks.

  • How to know date and time information from Trace File defaultTrace.X.trc?

    Hi, all.
      i'm using EP 6.0 SP9 patch 1.
      As you know, default trace is written in the <SID>\JC00\j2ee\cluster\server0\log\defaultTrace.X.trc.
      By using the default trace formatter, it shows like the following sample messages.
    #1.5#0011110E7B2000590000000100000A100003EC71562E6EBC#1104396451585#com.sap.jms.server.ServerClientAdapter##com.sap.jms.server.ServerClientAdapter#Guest#18####716257115a3f11d9b73b0011110e7b20#SAPEngine_Application_Thread[impl:3]_23##0#0#Error#1#/Applications/JMS#Plain###JMS internal error at ServerClientAdapter! JMS Service is not started!#
      My questions are
      1. how do we retrieve the date and time information from the above message? It seems that this message has date and time info because LogViewer shows the date and time based on the above message.
      2. how do we change the above date format to easier one
    like "YYYY:MM:DD:hh:mm:ss"? i know that it can be configured from the Visual Admin --> Services --> Log Configurator but i don't know the exact place for the trace file.
      Thanks.

    Hi Sejoon,
    I use the standalone Logviewer to read the log files. Works great.
    "If you have an SAP Web Application Server Java 6.20 or below you may also get a standalone_logviewer.zip file at the SAP Service Marketplace at service.sap.com/download &#8594; SAP NetWeaver &#8594; Release ‘04. In this case JDK version 1.3 or higher must be installed on the system. The java version must be same on the server and the client.
    In the SAP Web AS Java 6.30 installation a folder named logviewer_standalone can be found under: <path Of J2EE installation>/<SysID>/JC<nr>/j2ee/admin/logviewer_standalone. Verify that the batch file logviewer.bat is installed in the directory logviewer-standalone.
    (source -> http://help.sap.com/saphelp_nw04/helpdata/en/e4/540c404a435509e10000000a1550b0/frameset.htm)
    Best wishes,
    Noel

  • How to convert date which is coming from a file

    Hi All,
    I am reading the content from the file in which date is also one field, but i am while inserting into the database i'm getting an exception because it is not able
    to insert into the database because the database date format is different from the one which is coming from a file.
    The datatype value of the database is Date.
    Can anyone help me on this if anybody having an idea.
    Regards,
    CH

    Hi,
    Even if I'm using JavaEmbeddedActivity also i'm getting an error. Please have alook at the below code once
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class ConvertDateToStringExample {
    public static void main(String args[]){
    DateFormat dateFormat = new SimpleDateFormat("dd-nn-yyyy hh:mm:ss");
    //to convert Date to String, use format method of SimpleDateFormat class.
    String strDate = dateFormat.format(getVariableData('inputVariable','payload','/client:process/client:Date'));
    System.out.println("Date converted to String: " + strDate);
    Error Message:
    Error(21,33): Failed to compile bpel generated classes.
    failure to compile the generated BPEL classes for BPEL process "DateProcess" of composite "default/DateProcess!1.0"
    The class path setting is incorrect.
    Ensure that the class path is set correctly. If this happens on the server side, verify that the custom classes or jars which this BPEL process is depending on are deployed correctly. Also verify that the run time is using the same release/version.
    Well it's not at all allowing me to insert the format while passing the input arguments.
    Regards,
    CH

  • Need help with RANK() on NULL data

    Hi All
    I am using Oracle 10g and running a query with RANK(), but it is not returning a desired output. Pleas HELP!!
    I have a STATUS table that shows the history of order status.. I have a requirement to display the order and the last status date (max). If there is any NULL date for an order then show NULL.
    STATUS
    ORD_NO | STAT | DT
    1 | Open |
    1 | Pending |
    2 | Open |
    2 | Pending |
    3 | Open |1/1/2009
    3 | Pending |1/6/2009
    3 | Close |
    4 | Open |3/2/2009
    4 | Close |3/4/2009
    Result should be (max date for each ORD_NO otherwise NULL):
    ORD_NO |DT
    1 |
    2 |
    3 |
    4 |3/4/2009
    CREATE TABLE Status (ORD_NO NUMBER, STAT VARCHAR2(10), DT DATE);
    INSERT INTO Status VALUES(1, 'Open', NULL);
    INSERT INTO Status VALUES(1, 'Pending', NULL);
    INSERT INTO Status VALUES(2, 'Open', NULL);
    INSERT INTO Status VALUES(2, 'Pending',NULL);
    INSERT INTO Status VALUES(3, 'Open', '1 JAN 2009');
    INSERT INTO Status VALUES(3,'Pending', '6 JAN 2009');
    INSERT INTO Status VALUES(3, 'Close', NULL);
    INSERT INTO Status VALUES(4, 'Open', '2 MAR 2009');
    INSERT INTO Status VALUES(4, 'Close', '4 MAR 2009');
    COMMIT;
    I tried using RANK function to rank all the orders by date. So used ORDER BY cluse on date in descending order thinking that the null dates would be on top and will be grouped together by each ORD_NO.
    SELECT ORD_NO, DT, RANK() OVER (PARTITION BY ORD_NO ORDER BY DT DESC)
    FROM Status;
    ...but the result was something..
    ORD_NO |DT |RANKING
    *1 | | 1*
    *1 | | 1*
    *2 | | 1*
    *2 | | 1*3 | | 1
    3 |1/6/2009 | 2
    3 |1/1/2009 | 3
    4 |3/4/2009 | 1
    4 |3/2/2009 | 2
    I am not sure why didn't the first two ORD_NOs didn't group together and why ranking of 1 was assigned to them. I was assuming something like:
    ORD_NO |DT |RANKING
    *1 | | 1*
    *1 | | 2*
    *2 | | 1*
    *2 | | 1*
    3 | | 1
    3 |1/6/2009 | 2
    3 |1/1/2009 | 3
    4 |3/4/2009 | 1
    4 |3/2/2009 | 2
    Please guide me if I am missing something here?
    Regards
    Sri

    Hi,
    If i well understood, you don't need rank
    SELECT   ord_no, MAX (dt)KEEP (DENSE_RANK LAST ORDER BY dt) dt
        FROM status
    GROUP BY ord_no
    SQL> select * from status;
        ORD_NO STAT       DT
             1 Open
             1 Pending
             2 Open
             2 Pending
             3 Open       2009-01-01
             3 Pending    2009-01-06
             3 Close
             4 Open       2009-03-02
             4 Close      2009-03-04
    9 ligne(s) sélectionnée(s).
    SQL> SELECT   ord_no, MAX (dt)KEEP (DENSE_RANK LAST ORDER BY dt) dt
      2      FROM status
      3  GROUP BY ord_no;
        ORD_NO DT
             1
             2
             3
             4 2009-03-04
    SQL>

  • Need help with report quering store procedure

    I posted earlier today with my code, but I thought I should start a new thread and explain my scenario properly. Sorry for that.
    have to find if a person visited a particular type of store, lets say pets mart in last six months. Every time a member of us go to store, the transction is saved into a database, which means that there are 100s of records for each member. I have few condition to apply (like flags). For example, if a member visited pets mart in last 6 months, we can send him cuopan for that store.
    In my last code, I was using count(*) which takes for ever as everytime function is been called, it checks everything and then return more then one row. And my scenario requires only a flag kind of stuff, like either that member visited a particular store or not.
    I am not sure what approach would be the best and optimised, obviously not the count one. I tried the case statment and it also returns more then one record (for each visit of the member) and I am looking for something like if it occured then Y else N.
    My old code was something like that
    function fnc (memberno, startdate, endate) return number as abc number;
    begin
    select count(*) into abc
    from table a, table b
    where a.zz = b.cc
    and a.shop_date between startdate and endate)
    and a.store_shoped in ('st01' , 'sto02' , 'sto3')
    and a.store_location in ('loc1' , 'loc2');
    return (abc);
    end fnc;
    I really appreciate if you can suggest me a better way to handle my situation.
    Could someome please help me?

    Something involving WHERE EXISTS or add a ROWNUM = 1 filter:
    function fnc (p_memberno in number, p_startdate in date, p_enddate in date)
      return number
    as
      abc number;
    begin
      select count(*)
        into abc
        from dual
       where exists (select null
                       from table a, table b
                      where a.zz = b.cc
                        and ?? = p_memberno
                        and a.shop_date between p_startdate and p_enddate
                        and a.store_shoped in ('st01' , 'sto02' , 'sto3')
                        and a.store_location in ('loc1' , 'loc2'));
      return (abc);
    end fnc;With either approach, the count will return only 0 or 1 and will stop at the first match it finds.

  • Need help with dead blackberry / recovering data

    Device: BlackBerry Curve 8320 (Tmobile)
    A few days ago my BB Curve 8320 spontaneously just turned off and would not turn on again.  No blinking light, nothing.  Battery was fully charged, the phone is only 2 months old, and was not damaged in any way.  Battery was pulled out and re-inserted no luck.  Phone taken to T-mobile store and phone tested with new battery, and still no progress.  T-mobile replaced the phone free of charge. 
    I am struggling to recover my addressbook, text messages, and photos from the old device.  Every once in a while when the phone is plugged into the charger, the old device will display a battery with a diagnol red line through it.  I have attempted to use the desktop manager to recover the data, but again no luck.  Most of the time, it does not recognize the phone, and I have tried what has been suggested on multiple forums, with taking the battery out, catching the desktop manager for the split second it recognizes the device on the usb port.  I have been successful with that, but it won't let me sync or backup the device.  It allows me to load the application loader, but when i do this, it prompts me for .alx type application loader files, even though i have downloaded the device manager software from t-mobile, so I am unable to re-load the OS.  I also attempted to use the switch device wizard.  This also seemed like it was working.  I was able to connect both curves to my computer through different USB ports and it seemed like it was doing something, but when it's all done with the process, my new device still does not have my old addresses or text messages. 
    If anyone has any suggestions / advice on restoring my old device without losing the onboard data or some way to access the data so I can import that into my new curve, I would greatly appreciate it.
    Thanks!

     I HAD A BB CURVE 8320, I TRY ALL THE PROGRAMS ANYTHING WORK. MY BB TURN ON N TURN BACK OFF. I TRY LETTING THE BRAND NEW BATTERY SEAT OUT FOR 3O SECONDS STILL DIDNT WORK. WHAT SHOULD I DEW SOMEONE PLZ HELP ME.

  • Need help with clearing on screen data

    Hi all,
    I have a transaction which works like SM30 (table maintenance). In my main screen, I have 50 blank fields (created by appending 50 blank rows to an internal table) on the ALV grid for user new entries with 2 buttons: Save and Delete. Once the user has entered the data and click on Save, it will validate the entries and put into internal table before saving into the database.
    The problem arise when I want to delete the entries. When user click on Delete, it will clear the entries in the selected row. My problem is, how do I clear the data on the screen since this data is not yet inserted into internal table? These entries are new entries just entered by the users and not being put into internal table or in the database yet.

    Once user press the delete button ,
    in the user_command event you need to
    first insert the values to internal table with delete flag in the internal table , then delete the line the user selected for delete,
    then call
    method "g_grid->refresh_table_display" after row has been deleted.
    aRs

  • ITunes does not recognise iPhone 3G (version 4.2.1) and need help with how to transfer photos, contacts and/or messages PLEASE??

    Can i use wifi to transfer contacts, photos, messages etc- how??

    Try this one and see if it helps:
    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 & above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes, Sync and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

Maybe you are looking for