Problem with reading from bin file into Vector

What am I doing wrong? It works fine to write the vector to the bin file and then read from it. But if I try just to read from the file it wont work.
Does anybody has any good advice to give when it comes to reading data form a bin file??
import javax.swing.*;
import java.util.*;
import java.io.*;
class Binaerfil
     public static void main (String [] args) throws IOException, ClassNotFoundException{
          ObjectOutputStream utFil = new ObjectOutputStream (new FileOutputStream("HighScoreLista.bin"));
          int po = 50;
          Spelare s;
          Spelare s1, s2, s3, s4, s5,s6,s7,s8,s9,s10;
          String f�rNamn;
          Vector v = new Vector();
          s1 = new Spelare("Mario", 100);
          s2 = new Spelare("Tobias",90 );
          s3 = new Spelare("Sanja", 80 );
          s4 = new Spelare("Marko", 70 );
          s5 = new Spelare("Sofia", 60 );
          s6 = new Spelare("Kalle", 50 );
          s7 = new Spelare("Lisa", 40 );
          s8 = new Spelare("Pelle", 30 );
          s9 = new Spelare("Olle", 20 );
          s10 = new Spelare("Maria",10 );
          v.add(s1);
          v.add(s2);
          v.add(s3);
          v.add(s4);
          v.add(s5);
          v.add(s6);
          v.add(s7);
          v.add(s8);
          v.add(s9);
          v.add(s10);
          System.out.println ("Before writing to file");
          System.out.println(v);
          //Write to file
          utFil.writeObject (v);
          utFil.close();
     ObjectInputStream inFil = new ObjectInputStream (new FileInputStream("HighScoreLista.bin"));     
          v =(Vector) inFil.readObject();
     System.out.println (v);
          inFil.close();
}

Because what you are writing to the file is a vector, that is all you can get out. You are actually reading a single Object from the file which you can cast to a Vector, from which you can access the data stored inside. If you want to read the Spelare instances from the file, you will have to save them individually to the file. You will have to implement Serializable and look up the API to do that.

Similar Messages

  • Problem with reading from DAT file. FileNotFound exception

    Can't seem to find the issue here. Two files, one (listOfHockeyPlayers) reads from a DAT file a list of players. The other (HockeyPlayer) has just the constructor to make a new hockey player from the read data.
    import javax.swing.*;
    import javax.swing.event.*;
    import java.util.*;
    import java.awt.*;
    import java.io.*;
    public class ImportHockeyPlayers
    private ArrayList<HockeyPlayer> listOfHockeyPlayers = new ArrayList<HockeyPlayer>();
    public ImportHockeyPlayers(String fileName)
      throws FileNotFoundException
      try
       Scanner scan = new Scanner(new File(fileName));
       while (scan.hasNext())
        //Uses all the parameters from the HockeyPlayer constructor
        String firstName = scan.next();
        String lastName = scan.next();
        int num = scan.nextInt();
        String country = scan.next();
        int dob = scan.nextInt();
        String hand = scan.next();
        int playerGoals = scan.nextInt();
        int playerAssists = scan.nextInt();
        int playerPoints = playerGoals + playerAssists;
        //listOfHockeyPlayers.add(new HockeyPlayer(scan.next(),scan.next(),scan.nextInt(),scan.next(),scan.nextInt(),scan.next(),
         //scan.nextInt(),scan.nextInt(),scan.nextInt()));
      catch(FileNotFoundException e)
       throw new FileNotFoundException("File Not Found!");
    public String toString()
      String s = "";
      for(int i = 0; i < listOfHockeyPlayers.size(); i++)
       s += listOfHockeyPlayers.get(i);
      return s;
    public class HockeyPlayer
    private String playerFirstName;
    private String playerLastName;
    private int playerNum;
    private String playerCountry;
    private int playerDOB;
    private String playerHanded;
    private int playerGoals;
    private int playerAssists;
    private int playerPoints;
    public HockeyPlayer(String firstName, String lastName, int num, String country, int DOB,
      String hand, int goals, int assists, int points)
      this.playerFirstName = firstName;
      this.playerLastName = lastName;
      this.playerNum = num;
      this.playerCountry = country;
      this.playerDOB = DOB;
      this.playerHanded = hand;
      this.playerGoals = goals;
      this.playerAssists = assists;
      this.playerPoints = goals + assists;
    DAT File
    Wayne Gretzky 99 CAN 8/13/87 R 120 222
    Joe Sakic 19 CAN 9/30/77 L 123 210These are all in early development, we seem to have the idea down but keep getting the odd FileNotFound exception when making an object of the ImportHockeyPlayers class with the parameter of the DAT file.
    We might even be on the wrong track with an easier way to do this. To give you an idea of what we want to do...read from the file and be able to pretty much plug in al lthe players into a GUI with a list of the all the players.
    Thanks for your time.

    Thanks for the tip on the date format...good to
    know.
    public static void main(String[] args)
    GUI gui = new GUI();
    ImportHockeyPlayers ihp = new
    ImportHockeyPlayers("HockeyPlayers.dat");
    }It's just being called in the main.
    Throws this error:
    GUI.java:39: unreported exception
    java.io.FileNotFoundException; must be caught or
    declared to be thrown
    ImportHockeyPlayers ihp = new
    ImportHockeyPlayers("HockeyPlayers.dat");
    ^This error is simply telling you that an exception may occur so you must enclose it in a try catch block or change the main method to throw the exception as follows
    public static void main(String[] args) throws  
                          java.io.FileNotFoundException {
         GUI gui = new GUI();
         ImportHockeyPlayers ihp = new
         ImportHockeyPlayers("HockeyPlayers.dat");
    }or
    public static void main(String[] args) {
         GUI gui = new GUI();
         try {
              ImportHockeyPlayers ihp = new
              ImportHockeyPlayers("HockeyPlayers.dat");
         catch (FileNotFoundException e) {
              System.out.println("error, file not found");
    }I would reccomend the second approch, it will be more helpful in debugging, also make sure that the capitalization of "HockeyPlayers.dat" is correct
    hope that helps

  • Problem with reading from a file

    `HI,
    i am trying to read from a text file... using following piece of code
    try{               
                   BufferedReader in = new BufferedReader( new FileReader(fileName), 100000);
                   while (in.readLine() != null)
                        temp = in.readLine();
                   in.close();
                   in = null;
                   } catch(Exception e) {System.err.println(e); }          
                   System.out.println(temp);     
    text contains almost 7500 words...
    but when i run this piece of code... output i got is NULL
    ... i don't know what i am doing wrong...
    any suggestions
    <Thanx in advance >

    while (in.readLine() != null)Right here, you are reading in the file, but you don't store the content.
    temp = in.readLine();By the time you reach here, you have already read in the whole file, so there is nothing left to read. That's why temp is assigned null

  • A problem with importing layered PSD file into Flash

    Hi.
    There's a problem with importing layered PSD file into Flash.
    If I import a layered PSD file, some part the color of the lower layer is shown at the edge of objects or shadows. Instead, if I crop each layers first and import them, there's no problem.
    If the higher layer has brush or transparent effects, it becomes worse.
    Any help with this problem?
    Thanks.

    How was the original art created? Was the original RGB or CMYK? What is the resolution of the Photoshop file? Flash only works well with RGB and 72 pixel per inch resolution. If your original art is not set this way, then Flash will attempt to convert it as it imports it. Flash uses the sRGB color space. You'll get the best color translation if your Photoshop file is using this color preference.

  • Convert a line read from text file into string

    how to convert a line from text file into string?
    i know how to convert to numbers,
    private int  parseLine1(String line) {
              StringTokenizer tokenizer = new StringTokenizer(line);
                  value1 = Integer.valueOf(tokenizer.nextToken()).intValue();
                  value2 = Integer.valueOf(tokenizer.nextToken()).intValue();
                 return value1;
                     }but what about charactrs?

    ok, here is my problem, i have a file with a bunch of Xs in it but position function doesn't return a correct value, what's going wrong?
    private int positioni(){
           int i=0;
           int j=0;
           int b=0;
           String line="";
            while(line!= null){
                for(int a=0; a<line.length(); a++){
                    if(line.charAt(a)=='X'){
                        i=a;}
                b++;
                j=b;
                t=line.length();
                line=read(gridFileN);
           return i;
    private String read(String ggridFileN){
             TextStreamReader ggridFile = new TextStreamReader(ggridFileN);
             return ggridFile.readLine();

  • Read from a file into a JSP

    Okay, so I'm trying to make a JSP for an ePortfolio for school. I'm setting it up so that if a user clicks on a link to one of my papers, the JSP (text.jsp) takes the parameter "ptitle" from the get or post request and retrieves the appropriate text from a pure text file stored in the same folder. (I know, I know, I should use a DB (?), but I'm pretty sure I don't have access right now.) Also, since this is heavy on the Java and light on the HTML, I'd like to use a servlet, but I'm not sure about my host's capabilities. So as a test, I've set up the following:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <html>
        <%@ page import="java.io.*" %>
        <%   
            // String pageTitle = pageContext.getAttribute("ptitle");
            String pageTitle = "text.txt"; // this file is in the same folder as text.jsp
            String pageText = "If you are seeing this text, contact the webmaster at...";
            File pageFile = new File(pageTitle); // trying to wrap this file... I haven't worked with files like this much; if this is poorly done, let me know
            FileReader pageReader; // I'm using this for supposed convenience; I'll later change to Channels, I think
            char[] pageBuffer;
            StringBuffer pageTextBuffer;
            if(!pageFile.exists()) {
        %>
        <jsp:forward page="error.jsp">
            <jsp:param name="error" value="Page not found"/>
        </jsp:forward>
        <%
            else {
                pageReader = new FileReader(pageFile);
                pageBuffer = new char[100];
                pageTextBuffer = new StringBuffer();
                while(pageReader.read(pageBuffer) > (75)) { // better way?
                    pageTextBuffer.append(pageBuffer);
                out.println(pageTextBuffer); // test the output; I get the error page. Oddly enough, it says that the value for parameter "error" is null (from the session and pageContext).
        %>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JSP Page</title>
        </head>
        <body>
            <h1>JSP Page</h1>
        </body>
    </html>As commented, I get the error page. (It's wierd, because it has the text from the error page, but the URL is still ".../text.jsp" which is cool. Is the problem with the file reader, the JSP, or something else? Thanks for the help.
    theAmerican

    I would suggest not to use plain old io - quite evil and works quite unpredictably in web applications.
    File paths in web apps should always be relative to the context root of your application rather than paths relative to the location of the file in the hard disk.
    There are 2 ways to go about this - the inputstream linking to the file can be retrieved in 2 ways.
    1. Using the ServletContext object's getResourceAsStream("filepath") method. The 'filepath' here is always relative to the root of your web application (which in turn is denoted by / ).
    Thus if your file is stored in a folder called myFiles, which in turn is under your root folder (i.e, on the same level as WEB-INF) and your file is called, say, 'myText.txt', here's how you would obtain an InputStream object.
    InputStream is = application.getResourceAsStream("/myFiles/myText.txt"); //in jsps
    or
    InputStream is = getServletContext().getResourceAsStream("/myFiles/myText.txt"); //in servlets2. Use the getResourceAsStream(filepath) method of the java.lang.Class object. This method picks up files as it picks up classes (i.e it searches the classpath). Now since the classes folder inside WEB-INF is by default included in the classpath, you will have to have your myFiles directory inside the classes folder. Then,
    InputStream is = this.getClass().getResourceAsStream("/myFiles/myText.txt"); //in both jsps and servletswould return you an InputStream to that file.
    Having got a handle to the InputStream using either #1 or #2, it's now a simple matter of wrapping up the streams for the 'read' functionality.
    StringBuffer pageTextBuffer = new StringBuffer();
    BufferedReader reader = new BufferedReader(new InputStreamReader(is)); //wrap your streams
    String eachLine = null;
    while((eachLine = reader.readLine()) != null){
            pageTextBuffer.append(eachLine);
    out.println(pageTextBuffer);cheers,
    ram.

  • Problem using read from spreadsheet file and polar plotting

    Hi to all labview users,
    i am a beginner in labview and i am trying to do a polar plot.
    i read the polar plotting example in labview and it was straightforward.
    I used "write to spreadsheet file" to gather data.
    and they are in the following format
    13  10
    4  20
    8 30
    ....etc
    now. i tried using "read from spreadfile" to get the data into a array, then using "array to cluster" to convert the array into cluster, so i could connect it to the polar plot block
    however, it kept saying i couldnt connect that way, because polar plot uses 1-d array with cluster of 2 element and my source is a cluster of 9 elements....
    but doesnt the "read from spreadfile" block give me a 1-d array? and where does that 9 come from? i only have 3 rows and 2 columns in my data file....
    any guidance would be greatly appreciated.
    thx alot
    Happy guy
    ~ currently final year undergraduate in Electrical Engr. Graduating soon! Yes!
    ~ currently looking for jobs : any position related to engineering, labview, programming, tech support would be great.
    ~ humber learner of LabVIEW lvl: beginner-intermediate

    Helllo,
    I've made an example to try to help you  with that question.
    Notes:
     - the file must have values separeted by tab
     - reading the values from file as you mentioned using "read from spreadfile" you'll get a 2D array and not 1D;
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    Read Table and plot polar graph.vi ‏26 KB
    teste.txt ‏1 KB

  • Open and read from text file into a text box for Windows Store

    I wish to open and read from a text file into a text box in C# for the Windows Store using VS Express 2012 for Windows 8.
    Can anyone point me to sample code and tutorials specifically for Windows Store using C#.
    Is it possible to add a Text file in Windows Store. This option only seems to be available in Visual C#.
    Thanks
    Wendel

    This is a simple sample for Read/Load Text file from IsolateStorage and Read file from InstalledLocation (this folder only can be read)
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using Windows.Storage;
    using System.IO;
    namespace TextFileDemo
    public class TextFileHelper
    async public static Task<bool> SaveTextFileToIsolateStorageAsync(string filename, string data)
    byte[] fileBytes = System.Text.Encoding.UTF8.GetBytes(data);
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    var file = await local.CreateFileAsync(filename, CreationCollisionOption.ReplaceExisting);
    try
    using (var s = await file.OpenStreamForWriteAsync())
    s.Write(fileBytes, 0, fileBytes.Length);
    return true;
    catch
    return false;
    async public static Task<string> LoadTextFileFormIsolateStorageAsync(string filename)
    StorageFolder local = Windows.Storage.ApplicationData.Current.LocalFolder;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    async public static Task<string> LoadTextFileFormInstalledLocationAsync(string filename)
    StorageFolder local = Windows.ApplicationModel.Package.Current.InstalledLocation;
    string returnvalue = string.Empty;
    try
    var file = await local.OpenStreamForReadAsync(filename);
    using (StreamReader streamReader = new StreamReader(file))
    returnvalue = streamReader.ReadToEnd();
    catch (Exception ex)
    // do somthing when exception
    return returnvalue;
    show how to use it as below
    async private void Button_Click(object sender, RoutedEventArgs e)
    string txt =await TextFileHelper.LoadTextFileFormInstalledLocationAsync("TextFile1.txt");
    Debug.WriteLine(txt);
    在現實生活中,你和誰在一起的確很重要,甚至能改變你的成長軌跡,決定你的人生成敗。 和什麼樣的人在一起,就會有什麼樣的人生。 和勤奮的人在一起,你不會懶惰; 和積極的人在一起,你不會消沈; 與智者同行,你會不同凡響; 與高人為伍,你能登上巔峰。

  • Problem while reading from text file using JDeveloper 10.1.2

    Hi,
    I am using JDeveloper 10.1.2 for my application. In this, I have one requirement to read some data from a text file. For that, I created a test file and saved along with the java file folder. From there, I am trying to read this file but it says the file not found exception.
    Application is looking the file from another location. "F:\DevSuiteHome_1\jdev\system10.1.2.1.0.1913\oc4j-config"
    But, I want to read it from my home folder. How is it possible to read from that location?
    Regards,
    Joby Joseph

    HI,
    Check followings will useful
    How to read .txt file from adfLib jar at model layer using relative path
    Accessing physical/relative path from Bean

  • Problem in reading from excel file with my requirement

    Hi,
    Below is my input excel file format
    A    XXX
    B    XXX
    C    XXX
    D    E   F   G  H  I    J  K  L  M  N
    XX   XX  XX  XX.........................XX
    All the A...N are headings and XX's are values.
    How should I define an internal table for this requirement. I am using FM TEXT_CONVERT_XLS_TO_SAP to read input file.
    Please let me know the correct way to define internal table for the above file format.
    Regards,
    Cheritha

    Hello Cheritha,
    Your final internal table(t_final) should have all the fields viz. A, B, C, D etc.
    You need to read the file to an internal table say t_data. In the internal table t_data, the field values will be each row in this internal table.
    So you need to loop on t_data and based on the field name assign it to the corresponding field in the internal table t_final.
    Hope this is clear if any clarification please do reply
    Regards
    Farzan

  • Problem : Inserting Data from flat file  into  databse

    Hi,
    i m reading values from sybase tabel and writing those values into a flat file . some of those values are from table columns which has custom data type. the next thing i do is, read values from file , and insert into different table with the same column definition. the problem is that the values those are inserted into table are different than actual values . i dont know what's really happening. if any body have any idea ,plz help.

    when values are inserted ,only some column values are not inserted properly. i am reading those values as getBytes ,storing them in file and after that inserting into database using setBytes. but the values which are in file are different than those get inserted into database.
    dont know what is exact problem . is there something wrong with encoding. does anybody have any idea about this. what is basic encoding that sybase is using.

  • Problem in reading from the File

    Hi,
    I have a dataset.txt file which is as follows:
    2
    4
    1 2 3 4
    2 3 4 5
    3 4 5 6now that I need the value that is present in the 1st line of the file(ie;2) and value present in the 2nd line of the file(ie;4), upon that i'll be reading the data into an array.
    for this task of mine to accomplish , i'm using the following code
    String line_1;
    String line_2;
              int first_line,second_line;
              DataInputStream dis1 =null;
              DataInputStream dis2 =null;
              System.out.println("Print this");
              try
                   File f1=null;
                   f1 = new File ("dataset.txt");
                   File f2=null;
                  f2 = new File ("dataset.txt");
                 FileInputStream fis1 = new FileInputStream(f1);
                 FileInputStream fis2 = new FileInputStream(f2);
                 dis1 = new DataInputStream(fis1);
                 dis2 = new DataInputStream(fis2);
                           BufferedReader line1 = new BufferedReader(new InputStreamReader(dis1));
                      line_1=line1.readLine();
                      first_line=Integer.parseInt(line_1);
                      System.out.println("Value of First_line is:     "+first_line);
                      BufferedReader line2 = new BufferedReader(new InputStreamReader(dis2));
                      line_2=line2.readLine();
                      second_line=Integer.parseInt(line_2);
                      System.out.println("Value of Second_line is:     "+second_line);
    }//end of try
    catch(Exception e)
    {e.printStackTrace();}The problem here I'm having is, when i'm printing I'm getting the follow result
    Value of First_line is:2
    Value of Second_line is:2Instead of printing the value of Second_line as 4, it is printing 2.
    Why is this happening?
    Any kind of response is appreciated.
    Thanks is advance

    You dont have to make 2 data stream objects of the file.
    To read two lines you can just do with it object
    BufferedReader line1 = new BufferedReader(new InputStreamReader(dis1));and just call readLine( ) method twice
    line_1=line1.readLine();
    line_2=line1.readLine();

  • Problems with reading a pdf-file using Safari/Adobe Acrobat Pro

    Using Adobe Acrobat Pro 9.5.5. and Safari in Snow Leopard I open the pdf-file of  http://dare.uva.nl/document/505726 and small boxes appear in the text f.i. on page 70, 74, on the last page etc.
    I don't know why those small boxes appear only on my MacBook Pro with the installed software and others don't read a corrupt text. If I click in den pdf-file on the right side of the mouse and choose "open with Adobe Acrobat Pro" the pdf-file opens correctly (without small boxes)!

    As you discovered, Adobe Acrobat/Pro/Reader v.9 will crash for all managed user accounts that store their home folders on the server because it has "difficulty" reading and writing to a folder across a network, which is why it crashes shortly after it launches.
    HOWEVER, there is hope. All you need to do is tell Adobe to write all of its files to the local drive rather than the home folder on the sharepoint, as follows:
    While logged into your network-user account:
    1. Go to the "Shared" folder on the local drive. (Local HD > Users > Shared)
    2. Create a new folder named "9.0_x86" if you have an Intel or "9.0_ppc" if you have a PPC (without the quotes for either case). You will have to authenticate as an Administrator.
    3. Go to the Acrobat folder within the user's Application Support and delete the folder in it.
    (Home > Library > Application Support > Adobe > Acrobat > 9.0_x86 or 9.0_ppc)
    4. Open/launch the Terminal application found within the Utilities folder on you Mac.
    (Applications > Utilities > Terminal.app)
    5. In Terminal, enter the 1st command for Intel or the 2nd for PPC:
    ln -s /Users/Shared/9.0_x86 ~/Library/Application \Support/Adobe/Acrobat/9.0_x86
    OR
    ln -s /Users/Shared/9.0_ppc ~/Library/Application \Support/Adobe/Acrobat/9.0_ppc
    Adobe Acrobat 9 should now work properly. You may get the "quit unexpectedly" error message the first time you quit the application, but should only happen the one time.
    On a side note, the print spool is slow when printing very large multi-paged PDFs.
    This is a fix I found in 2009 by Dennis, can't remember where though.
    Message was edited by: Gabriel Prime

  • Problems with prints from RAW files

    I wonder if someone could shed some light on this problem. I uploaded some photos to Kodak through iPhoto, some were JPEG's from my old Canon Powershot and some were RAW files from my new Nikon D40. The images on my monitor from the RAW files from the D40 were great with very vivid colors and I was looking forward to my first prints from the D40. When I received the prints the photos from the old Power shot looked good but the D40 looked terrible. The prints were all washed out and very dull, the strange thing was that there was one photo that was taken with the D40 which was edited and that came out as a good print and seemed to be a JPEG. I guess its something to do with the upload of RAW files, should I be shooting in JPEG ?. I thought that iPhoto uploaded JPEG's
    Thank you in advance

    Printed RAW files will always look unsaturated or "dull" until processed and saved as a jpeg or tiff files. Think of RAW/NEF as a means of preserving ALL the available information to later "develop" a final image to be saved as tiff or jpeg for publication. Shooting in Large Fine JPEG mode will yield great results for print and web publishing, and also leave more room on your memory card and computer drive to make more great photos
    Nikon D70 & D200; TiBook 1Ghz; MacBook 2Ghz; Dual 1.8Ghz PowerMac G5; 20" Cinema Display   Mac OS X (10.3.9)   additional 300 GB internal; 160GB and 300GB externals; 10GB, 40GB, 60GB iPods

  • Read from text file takes very long after the first time

    Dear LabVIEW experts,
    I'm having a problem with read from text file. I'm trying to read only every nth line of a file for a preview with this sub vi:
    I seems to work well the first time I do it. The loop takes almost no time to execute an iteration.
    Then when I load the same file again with exactly the same settings one iteration takes around 50ms.
    Subsequent attempts seem to always take the longer execution time.
    Only when I restart the calling vi it will be quick for one file.
    When executing the sub vi alone it is always quick, but I don't see how the main vi (too complex to post here) could obstruct the execution of the sub vi.
    I don't have a the file opened elsewhere in the main vi, I don't use too much memory...
    Right now I don't now where to look. Does anyone have an idea?
    Regards
    Florian
    Solved!
    Go to Solution.

    I don't know the LabVIEW internals here, but I would think that it is quite possible that closing a file opened for read/write access writes a new copy of the file to disk, or at least checks the file in order to make sure a new file does not have to be written.
    Therefore, if your main VI calls this subVI sequentially (you don't give any information about the place of this subVI in the main VI), you are actually looking at a close (check/write) -> open operation for any time you call it, as opposed to a simple open operation the first time. If you were to open the file for simple read access (since that's all you do), it should work fast every time because there is no need to check to see if it has changed.
    Cameron
    To err is human, but to really foul it up requires a computer.
    The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
    Profanity is the one language all programmers know best.
    An expert is someone who has made all the possible mistakes.
    To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):
    LabVIEW Unit 1 - Getting Started
    Learn to Use LabVIEW with MyDAQ

Maybe you are looking for

  • Regarding Residual Payment logic

    While runing AG report I need original invoice number for Residual Payment invoice amount For eg., Invoice amount Rs.10,000, customer paid Rs.2000 after 2 month he paid Rs.3000 then after 3 month he paid Rs. 4000. If i run AG report i need original I

  • How are edited iPhoto pictures represented in Aperture?

    Hi all, I'm a relatively new Aperture user, and apologize in advance if the answer to my question is common knowledge.  (I did my homework first, but perhaps didn't search on the right keywords.)  I imported a few thousand pictures from iPhoto to Ape

  • Compatibility between XI3.0 with ESR 7.0 Ehp1 release

    Customer has a scenario where content is built in ESR 7.0 Ehp1 release and will like to use it in XI 3.0 Is this scenario supported? Any official documentation will be helpful. Regards, Arpit

  • About "monitor.cc"

    Hi, everyone! I have a question about the file monitor.cc in OpenSAPRCT1.1.4. The file monitor.cc located in \OpenSPARCT1.1.4\verif\env\iss\pli\monitor\c. Has there anyone read and discussed it ? Is it been used in regression or not ? I have modified

  • Why do my windows keep defaulting to a List view that I have to adjust just to see columns other than name

    This occurs both in Finder and in Application modal dialog boxes working with files. I am constantly (and I mean constantly) reducing the width of the name field in windows in List view so that the name column doesn't use the entire available width o