Problem loading from file

my problem
i have array which hold the color --->int this work fine [only one digit]
i have another array which hold --->boardpiece [ some of have two digit]
each time i call this function(below) it give me a number
i am to confuse at moment i was siting here from morning and i still can get answer
[this function read text and then send it to my load funtion in my board class
i cant tell it read whole text first and then convert both didigt to one array]
eg. 14
it reads 1
send 1
reads 4
send 4
and then i have more elemen in my array------>i get error[i want it to send just 14]
// i try send as array but at moment i cant do it " i will greateful
some one give me some hint"
for(int i=0; i<s.length(); )
     {  if (s.substring(i,i+1).equals("")) 
          else
         {  l=substring(i+i+1
        aload =Integer.parseInt(s);
          bboard.load(aload);
               i++;
my save file look like this
1
12
15
7
14
0
thanks

trouble understanding me english yours

Similar Messages

  • Problems loading RAW files from Canon 6D in Elements 10

    Elements 10 - Windows: I have been using the software for a couple of years and never had a problem loading RAW files from my Canon T2i ir 60D, however I just purchased a Canon 6D and when I try to load a RAW from the 6D I get Cannot open 'C:\User...CR2' because it is the wrong type of file.  I thought cameraraw 6.5 patch would be the fix but when trying to install I get "Error loading Updater workflow"

    Will the DNG files perform the same, meaning will I retain all the information that makes RAW important for processing?
    Yes. That's why DNGs were invented. Adobe has put a lot of work into the DNG format for this very reason.
    Raw files are proprietary and manufacturer specific. Raw formats change with every make and model of camera. Software must be updated for the new Raw format of every single camera. Adobe does an admirable job of upgrading Camera Raw for every new camera.
    DNG is also a Raw format but it's open source and works in any software which can read the DNG format. If camera manufacturers used the DNG format instead of their own Raw format, you would not have to upgrade Elements 10. But they don't, and probably never will, so you must upgrade the Camera Raw plugin (and therefore Elements 10 since it's not compatible with the new Camera Raw) to read the new Raw format from the 6D or add another step to your workflow with conversion to DNG first.
    See
    http://photographylife.com/dng-vs-raw
    http://www.adobe.com/products/photoshop/extend.displayTab2.html

  • Problems loading raw files from Nikon D750 to lightroom4

    problems loading raw files from Nikon D750 to lightroom4. Any thoughts?

    This is a recently produced model so raw support was only added in LR 5.7 / ACR 8.7, updates to LR 4 ceased about two years ago when LR 5 was issued.
    Options a.) Upgrade to LR 5.
    b.) Utilize the latest Adobe DNG Converter 8.8 to convert the nef files to dng format then you will be able to import the dng files into LR 4.

  • Extract the load from file extended results table in a csv file format

    I am trying to figure out a way to extract the extended results table spit out by IDM when we do a load from file. The result generates a table with 10 entries per page. I would like to atleast change that and display all the successes and failures in a single page.
    Edited by: indie on Jan 15, 2008 4:51 PM

    Hi indie,
    I need to do something similar. Did you find a way ?
    TIA,
    AndyDev

  • Load from file:// url

    Hi,
    I'm trying to get a very simple OSMF example loading from a file:// URL.
    When I load from an absolute http:// url the video is loaded and displayed.
    When I try to load from a relative URL or an absolute file:// URL the video is not loaded and displayed and no request is made to load the video.
    I don't think it is a security sandbox issue as I'm running in a trusted folder and would expect an exception for a security sandbox issue.
    Executing netLoader.canHandleResource() returns true for each URL.
    Surely I'm missing something obvious but I would expect this to work without any extra effort.
    Maybe this is a known issue of I need to do something else to load from file:// URLs.
    The code is so simple it's hardly worth posting:
    public function load( url:String ):void
         var resource:URLResource = new URLResource( url );
         _netLoader = new NetLoader();
         trace("VideoPlayer::load()", _netLoader.canHandleResource( resource ) );
         var media:VideoElement = new VideoElement( resource, _netLoader );
         //display has already been instantiated and added to the display list
         _display.addMediaElement( media );
         _player = new MediaPlayer();
         _player.media = media;
    Any help with this would be much appreciated.

    You can use the IOErrorEvent.IO_ERROR listener and trace for debugging to see if your xml is being received.
    example...
    var pageData:XML;
    private function getInfo():void {
    var url:String = "urlTo.xml";
    var myXMLLoader:URLLoader = new URLLoader();
    myXMLLoader.addEventListener(Event.COMPLETE, onLoaded, false, 0, true);
    myXMLLoader.addEventListener(IOErrorEvent.IO_ERROR, errorXML, false, 0, true);
    myXMLLoader.load(new URLRequest(url));
    private function onLoaded(e:Event):void {
    pageData = new XML(e.target.data);
    pageData.ignoreWhitespace = true;
    //for testing in Flash
    trace("Data received: "+pageData);
    //for testing to device
    // example: textfieldOnStage.htmlText = pageData;
    //handle xml load error
    private function errorXML(e:Event):void {
    trace("XML Error:"+ e);
    // example: textfieldOnStage.htmlText = pageData;

  • Load From File Workflow

    Someone knows which workflow runs when Load from file task is executed?
    or If you use a Load Form, you can use the viewOptions.process to inidicate which workflow you want to execute?

    BUT, you must save the Photoshopped image using Save (not Save As using a new name or saving to a new location) so that a Photoshop file is saved back in the Aperture library. It would be nice if you could use the Apple-Shift-O to open in Photoshop, and save back as a Jpeg automatically, but we're not quite there yet.
    Those full size Photoshop files will swell your library size pretty quick, which is a good thing; you'll begin to appreciate non destructive editing more fully

  • Problem reading from file

    Hi,
    im bit new to java and i am having this problem. I have a Hashtable of 42000 keys and each value points to an object (vector of arrays). I am storing this hashtable to a file using ObjectOutputStream. the file size is 25 mb. no problem till this point.
    I am using ObjectInputStream for reading this object from the file. file is loaded successfully but it takes too much time (1 min to load 25mb file). is there a way to improve the function so it wont take that much time. here is my read function
    try{  
    FileInputStream f_in = new FileInputStream ("data.dat");
    ObjectInputStream obj_in = new ObjectInputStream (f_in);
    Object obj = obj_in.readObject (); // here is the problem. obj_in.readObject() takes 1 min to load
    if(obj instanceof java.util.Hashtable){
    Hashtable idx1 = new Hashtable();
    idx1 = (Hashtable) obj;
    return idx1;
    else{
    System.out.println("loading failed!");
    catch (Exception e)
    System.out.println (e.toString ());
    }

    it still taking that much time.
    the problem is here
    Object obj = obj_in.readObject ();
    Are you saying you do not gain any time at all using a buffered stream?
    In any case, there is no way (I know of) to improve the execution time of deserialization itself. What needs to happen, i.e. reading a lot of bytes from a file + re-constructing a lot of objects, needs to happen. Often disk access will turn out to be a bottleneck; using a buffered stream to the file can improve the speed of this part. But the object reconstruction can not be improved. You could profile your application to find out where exactly the bottleneck is, but I don't see how you can speed it up even if you do know if it's disk access or reconstruction.
    If there is a way to speed up the reconstruction process during deserialization, I'd be very interested to know how, actually.
    If the runtime is simply unacceptable for your requirements, you might consider looking into using something else then Java serialization to write/read your data.

  • Problem loading XML-file using SQL*Loader

    Hello,
    I'm using 9.2 and tryin to load a XML-file using SQL*Loader.
    Loader control-file:
    LOAD DATA
    INFILE *
    INTO TABLE BATCH_TABLE TRUNCATE
    FIELDS TERMINATED BY ','
    FILENAME char(255),
    XML_DATA LOBFILE (FILENAME) TERMINATED BY EOF
    BEGINDATA
    data.xml
    The BATCH_TABLE is created as:
    CREATE TABLE BATCH_TABLE (
    FILENAME VARCHAR2 (50),
    XML_DATA SYS.XMLTYPE ) ;
    And the data.xml contains the following lines:
    <?xml version="2.0" encoding="UTF-8"?>
    <!DOCTYPE databatch SYSTEM "databatch.dtd">
    <batch>
    <record>
    <data>
    <type>10</type>
    </data>
    </record>
    <record>
    <data>
    <type>20</type>
    </data>
    </record>
    </batch>
    However, the sqlldr gives me an error:
    Record 1: Rejected - Error on table BATCH_TABLE, column XML_DATA.
    ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    If I remove the first two lines
    "<?xml version="2.0" encoding="UTF-8"?>"
    and
    "<!DOCTYPE databatch SYSTEM "databatch.dtd">"
    from data.xml everything works, and the contentents of data.xml are loaded into the table.
    Any idea what I'm missing here? Likely the problem is with special characters.
    Thanks in advance,

    I'm able to load your file just by removing the second line <!DOCTYPE databatch SYSTEM "databatch.dtd">. I dont have your dtd file, so skipped that line. Can you check if it's problem with ur DTD?

  • RapidMarts - "Open file error" R3C-150607 loading from file

    Hello experts.
    We are installing RapidMarts for the SA-module, but when executing the main workflow in Data services we get an error trying to load the file dates.dat.
    The generated ABAP looks just fine, and the file exists where it should be (in SAP working directory), but still not able to load it.
    This is the error msg:
    Data flow DF TimeDim SAP - Execute ABAP program <E:/RM generated ABAP dir/TimeDim.aba> error  > Open File Error -- E:/RM Working directory/dates.dat>.
    We have the following setup:
    Windows server
    MS SQLserver 2005 database
    SAP BO Dataservices v12.2.9.0
    SAP BO RapidMarts for v12.2.0
    Any good ideas on how to fix this?
    Thanks in advance!
    Best regards,
    IngA

    Hi again.
    The problem is solved.
    When configuring the R3 datastore in Dataservices we assigned the different directories (working dir, generated ABAP dir etc.) on a server that's NOT our R3-server.
    When we  changed this to use folders on our SAP-server it works just fine (for this at least)
    Cheers, IngA

  • Problem loading from DATA MART to ODS, SERVICE-API

    Hi gurus,
    I have a problem loading data from data mart to ODS, full load.
    But, if i try extractor itself (test in RSA3) it works fine.
    I already replicated, generated,check transfer rules....datamart but when i try to load data, I get this to messages:
    Message no. R3005
    "The InfoSource 8TEST_MM specified in the data request, is not defined in the
    source system."
    Message no. RSM340
    Errors in source system.
    BTW: This test system was copied from production system. And so far I had no problems with system, but i never tried loading from data marts.
    Any ideas?
    Regards, Uros

    Thanks, for your answer.
    I already did that and everything is fine, I see the infosource, and if I test the extractor it works fine, but the infopackage gives me above mentioned errors.
    I already looked through notes and I couldn't find anything useful.
    I forgot to mention that I generated export data source from transacional ODS.
    Regards, Uros

  • Control names load from file

    Is there a way to load a control (i.e. boolean switch) name from a file?
    Here is my situation. I have 4 selector toggles, and a go button. Picking a selection and pressing go will send an array of four binary numbers (true or false converted to 0 or 1) to a sub vi called command_former.
    This program is simple. It first loads up a library file with pre-made sequences of bytes which correspond to each button. It outputs an array that includes the appropriate byte sequences concatenated onto one another if the selector toggle is set to 1.
    By loading the values from a file, it easily lets the user change what the selector toggles do. But I do not know how to change the name to also load from a file.
    Solved!
    Go to Solution.

    You cannot change the name of a control at run-time. You can, however, change the caption. For Boolean controls if you want to change the text that appears in the middle of the control this is done via the BooleanText property node. See https://decibel.ni.com/content/docs/DOC-22669 for a simple example.

  • Load from file

    Newbie question: Is it possible to load values into a table from
    a tab-delimited file? In Informix, the syntax is:
    load from century2.data insert into tmp_century;
    Thanks!
    John
    null

    John Dimm (guest) wrote:
    : Newbie question: Is it possible to load values into a table
    from
    : a tab-delimited file? In Informix, the syntax is:
    : load from century2.data insert into tmp_century;
    : Thanks!
    : John
    Instead you use the SqlLoader you can use too the UTL_FILE
    package. This package come with oracle and have to be executed
    in the ORANT\RDBMS\ . After created this package you can read
    and write file from PL/SQL programs. Don't forget it to insert
    the parameter in the IntiSid.Ora " utl_file_dir= * " . Read the
    documentation about Utl_file .
    I prefer Utl_file because you can manage the data before insert
    in the Database. But the Sql Loader is too a good toll.
    null

  • Problem loading / writing files.

    Hi, im trying to create and load a file to the user's home directory as follows:
    File f = new File(System.getProperty("user.home") + "/settings.xml");
    if (f.exists() == false)
         try
              // If the file doesn't exist, create one.
              f.createNewFile();
              // Get the url.
              URL filePath = f.toURI().toURL();
    The file is created properly and exists in the proper directory. However, when i try to use the URL to write out to
    file later i get the following error:
    C:\Documents%20and%20Settings\User\settings.xml (The system cannot find the path specified)
    I believe this is due to the %20's within the URL, how can i remove / handle these? Am i doing something incorrectly?
    Also, if the file exists, i try to load it with the following code:
    URL filePath = this.getClass().getClassLoader().getResource(System.getProperty("user.home") + "/settings.xml")
    However the URL that is return is null and i dont know why.
    thanks for the help.

    Why do you want an URL for the file? Use the File object to create a FileInputStream or FileReader.

  • Problem with Data load from file

    Hi,
    if i try to load data from an comma seperated file into oracle, i get an error that the page cannot be displayed, after the dialog where to specify the file and the separation method.
    My Browser does not try long to open the page approx. 1 sec. ...
    Anyone have a Idea about that ?
    P.S I know my englisch is horribile, sorry

    A known bug. See below for a solution to set the timeout. Remember to reboot the PC for the changes take effect.
    See Re: Problem with importing HTML DB applications

  • Problem loading old files from Bridge (CS6)

    just upgraded from CS5 to CS6 (originally had CS3) now when trying to load images which were loaded in 2002 when using CS3 I get an error message 'windows cannot find  C:\Program files(x86)\Adobe PhotoshopCS3\Photoshop.exe Make sure you typed the name correctly then try again' I assume that there is an association with a file that no longer exists how can I change this?

    I am starting to get the same thing. I had CS3&5 on my PC/Win7/64 desktop, along with CS6. CS3 was loaded, but has been deactivated for some time. I deactivated CS5 yesterday. Everything was running fine. Then, today, I unistalled both suites, 3&5. Now, when I try to open an image, raw or jpg, in Bridge, I get the same response as the OP.
    My file assoc. is Photoshop for raw and jpg, but it doesn't list a version, just PS.

Maybe you are looking for

  • Printing from Quickbooks on a mac and I get nothing?

    I got my Mac in October along withe the HP photosmart C4780.  On several occasions I go to print a check (and other print jobs also)  and it says it is sending info to the printer and nothing comes out.  Other times I will walk away from the printer

  • Moving music and Photos back to my Mac

    Please forgive if this appears to be a rather simple question but my mac crashed and I had to reinstall OSX Tiger and now I have lost my Iphotos and Itunes libraries. They are both on my Ipod Nano and my screen is failing fast on my Nano so I have to

  • PDF Files with bookmarks open in iPad iBooks without the bookmarks.

    PDF Files created with Adobe Acrobat or other PDF file creating software open in iPad iBooks with the Bookmarks.  How do you access those.

  • Percentage calculation error?

    Hi guys, I must be missing something very basic - I can't get a simple percentage calculation to work in an applet: float percentage = 0; int amount,total; amount = 4; total = 10; percentage = (float)((amount / total) * 100); Instead of returning 40.

  • A case that works with Vision M play

    I am going to buy a Zen Vision M (can't wait!!!!) this month. I was browsing the selection of players at Wal-Mart and came across this mp3 player case. It was about 3-5 bucks (bought it before Christmas, can't remember the exact price now). A Wal-Mar