Creating jTbale that reads a text file

hey,
i want to make a Jtable out of a text file such that if there are blank spaces it should enter the text into a new column and if there is a new line then it should be entered into a new row. ...like if there is a text file such as
1 2 3
4 5 6
then it should be entered into a JTable of 2 rows and three columns.....following similar topics in forum I have written something like this
try          {
      Vector data = new Vector();
     vector data1 = new vector();
      String aLine;
       String aDouble;
      FileInputStream fis = new FileInputStream(selFile);
      BufferedReader br = new BufferedReader(new InputStreamReader(fis));
     //read each double
     while ((adouble = br.readDouble()) != null) {
         // create a vector to hold the field values
         Vector column = new Vector();
         // tokenize words into field values
         StringTokenizer str = new StringTokenizer(adouble, " ");
         while (str.hasMoreTokens()) {
            // add field to the column
            column.addElement(str.nextToken());
         // add column to the model
         model.addColumn(column);
      // read each line of the file
      while ((aLine = br.readLine()) != null) {
         // create a vector to hold the field values
         Vector row = new Vector();
         // tokenize line into field values
         StringTokenizer st = new StringTokenizer(aLine, "|");
         while (st.hasMoreTokens()) {
            // add field to the row
            row.addElement(st.nextToken());
         // add row to the model
         model.addRow(row);
      // Close file
      br.close();
      fis.close();
                        catch (IOException ioExc){
                    ioExc.printStackTrace();     
                    }the code ofcourse is not doing what is expected
please help!!!!!!!!
Thanks

Thanks camickr....i read that we can use readDouble however I am getting an error if am using that.....here is my complete code.....
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.table.*;
import java.util.*;
import java.lang.*;
import java.io.*;
import javax.swing.JTable;
import javax.swing.table.TableCellRenderer;
public class TeamTable extends JFrame implements ActionListener, ItemListener                
static JTable table;
     // constructor
    public TeamTable()                
        super( "Invoermodule - ABCD" );
        setSize( 740, 365 );
          // setting the rownames
        ListModel listModel = new AbstractListModel()                     
            String headers[] = {"Values"};
            public int getSize() { return headers.length; }
            public Object getElementAt(int index) { return headers[index]; }
          // add listModel & rownames to the table
          DefaultTableModel defaultModel = new DefaultTableModel(listModel.getSize(),4);
          table = new JTable( defaultModel );
          // setting the columnnames and center alignment of table cells
          int width = 200;
          int[] vColIndex = {0,1,2,3};
          String[] ColumnName = {"a", "b", "c", "d"};
          TableCellRenderer centerRenderer = new CenterRenderer();          
          for (int i=0; i < vColIndex.length;i++)          {
                         table.getColumnModel().getColumn(vColIndex).setHeaderValue(ColumnName[i]);
                         table.getColumnModel().getColumn(vColIndex[i]).setPreferredWidth(width);
                         table.getColumnModel().getColumn(vColIndex[i]).setCellRenderer(centerRenderer);
          table.setFont(new java.awt.Font("Dialog", Font.ITALIC, 12));
          // force the header to resize and repaint itself
          table.getTableHeader().resizeAndRepaint();
          // create single component to add to scrollpane (rowHeader is JList with argument listModel)
          JList rowHeader = new JList(listModel);
          rowHeader.setFixedCellWidth(100);
          rowHeader.setFixedCellHeight(table.getRowHeight());
          rowHeader.setCellRenderer(new RowHeaderRenderer(table));
          //JList columnHeader = new JList(listModel);
          //columnHeader.setFixedCellWidth(100);
          //rowHeader.setFixedCellHeight(table.getRowHeight());
          //columnHeader.setCellRenderer(new ColumnHeaderRenderer(table));
          // add to scroll pane:
          JScrollPane scroll = new JScrollPane( table );
          scroll.setRowHeaderView(rowHeader); // Adds row-list left of the table
          getContentPane().add(scroll, BorderLayout.CENTER);
          // add menubar, menu, menuitems with evenlisteners to the frame.
          JMenuBar menubar = new JMenuBar();
          setJMenuBar (menubar);
          JMenu filemenu = new JMenu("File");
          menubar.add(filemenu);
          JMenuItem open = new JMenuItem("Open");
          JMenuItem save = new JMenuItem("Save");
          JMenuItem exit = new JMenuItem("Exit");
          open.addActionListener(this);
          save.addActionListener(this);
          exit.addActionListener(this);
          filemenu.add(open);
          filemenu.add(save);
          filemenu.add(exit);
          filemenu.addItemListener(this);
// ActionListener for ActionEvents on JMenuItems.
public void actionPerformed(ActionEvent e)
     String open = "Open";
     String save = "Save";
     String exit = "Exit";
          DefaultTableModel model = (DefaultTableModel)table.getModel();
          if (e.getSource() instanceof JMenuItem)     
               JMenuItem source = (JMenuItem)(e.getSource());
               String x = source.getText();
                    if (x == open)          
                         System.out.println("open file");
                    // create JFileChooser.
                    String filename = File.separator+"tmp";
                    JFileChooser fc = new JFileChooser(new File(filename));
                    // set default directory.
                    File wrkDir = new File("C:/Documents and Settings/Table");
                    fc.setCurrentDirectory(wrkDir);
                    // show open dialog.
                    int returnVal =     fc.showOpenDialog(null);
                    File selFile = fc.getSelectedFile();
                    if(returnVal == JFileChooser.APPROVE_OPTION) {
                    System.out.println("You chose to open this file: " +
               fc.getSelectedFile().getName());
          try{
Vector data = new Vector();
     String adouble;
FileInputStream fis = new FileInputStream(selFile);
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
     //read each double
     while ((adouble = br.readDouble()) != null) {
// create a vector to hold the field values
Vector column = new Vector();
     Vector row = new Vector();
// tokenize words into field values
StringTokenizer str = new StringTokenizer(adouble, " ");
     StringTokenizer st = new StringTokenizer(adouble, "|");
while (str.hasMoreTokens()) {
// add field to the column
column.addElement(str.nextToken());
// add column to the model
model.addColumn(column);
     while (st.hasMoreTokens()) {
// add field to the column
row.addElement(st.nextToken());
// add row to the model
model.addRow(row);
// Close file
br.close();
fis.close();
          catch (IOException ioExc){
          ioExc.printStackTrace();     
                    if (x == save)          {
                         System.out.println("save file");
                    if (x == exit)          {
                         System.out.println("exit file");
// ItemListener for ItemEvents on JMenu.
public void itemStateChanged(ItemEvent e) {       
          String s = "Item event detected. Event source: " + e.getSource();
          System.out.println(s);
     public static void main(String[] args)                {
          TeamTable frame = new TeamTable();
          frame.setUndecorated(true);
     frame.getRootPane().setWindowDecorationStyle(JRootPane.FRAME);
          frame.addWindowListener( new WindowAdapter()           {
               public void windowClosing( WindowEvent e )                {
     System.exit(0);
frame.setVisible(true);
* Define the look/content for a cell in the row header
* In this instance uses the JTables header properties
class RowHeaderRenderer extends JLabel implements ListCellRenderer           {
* Constructor creates all cells the same
* To change look for individual cells put code in
* getListCellRendererComponent method
RowHeaderRenderer(JTable table)      {
JTableHeader header = table.getTableHeader();
setOpaque(true);
setBorder(UIManager.getBorder("TableHeader.cellBorder"));
setHorizontalAlignment(CENTER);
setForeground(header.getForeground());
setBackground(header.getBackground());
setFont(header.getFont());
* Returns the JLabel after setting the text of the cell
     public Component getListCellRendererComponent( JList list,
Object value, int index, boolean isSelected, boolean cellHasFocus)      {
setText((value == null) ? "" : value.toString());
return this;
class CenterRenderer extends DefaultTableCellRenderer
public CenterRenderer()
setHorizontalAlignment( CENTER );
public Component getTableCellRendererComponent(
JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column)
super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
if (hasFocus)
setBackground( Color.cyan );
else if (isSelected)
setBackground( table.getSelectionBackground() );
else
setBackground( table.getBackground() );
return this;

Similar Messages

  • Read from text file, display in textarea

    java newbie here - I'm trying to write a chat program that checks a text file every 1 second for new text, and then writes that text to a textArea. I've got the thread setup and running, and it checks and text file for new text - all that works and prints to system console - but I have no idea how to print that text to a textArea.
    I've tried textArea.append, but it seems this only works on the initial run - if I put it in the thread, it won't work. I can make textArea.append work if its in an ActionEvent - but how would I make an ActionEvent run only when my script detects new text from my text file?
    Any ideas on how to do this are appreciated.
    --Mike                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    I've tried textArea.append, but it seems this only works on the initial
    run - if I put it in the thread, it won't work. I can make textArea.append
    work if its in an ActionEvent - but how would I make an ActionEvent
    run only when my script detects new text from my text file? ?
    It doesn't matter if you call the textArea.append() when the ActionEvent is triggered or if you call textArea.append() directly from a thread or any other object, the text will be append to te text area. What could have happen is you somehow lost the reference pointing to the textArea that you add to your user interface.
    example:
    JTextArea txtArea = blah..blah..blah
    MyThread t = new myThread(txtArea);
    class MyThread extends Thread{
        private JTextArea txtArea;
        public MyThread(Thread textArea){
            this.textArea = textArea;
        public void run(){
            textArea = new JTextArea(); // opps..you lost the reference to the textArea in the main gui...what you have done is created a new JTextArea object and point to tat..and this textarea object is not visible.
    }

  • How to read a text file using Java

    Guys,
    Good day!
    Please help me how to read a text file using Java and create/convert that text file into XML.
    Thanks and God Bless.
    Regards,
    I-Talk

         public void fileRead(){
                 File aFile =new File("myFile.txt");
             BufferedReader input = null;
             try {
               input = new BufferedReader( new FileReader(aFile) );
               String line = null;
               while (( line = input.readLine()) != null){
             catch (FileNotFoundException ex) {
               ex.printStackTrace();
             catch (IOException ex){
               ex.printStackTrace();
         }This code is to read a text file. But there is no such thing that will convert your text file to xml file. You have to have a defined XML format. Then you can read your data from text files and insert them inside your xml text. Or you may like to read xml tags from text files and insert your own data. The file format of .txt and .xml is far too different.
    cheers
    Mohammed Jubaer Arif.

  • Reading Windows text file in Fortran?

    Is there a way to make the f90 compiler read Windows text files properly? I made a simple test with a text file created on a Windows system containing these three lines:
    This is a Windows text file.
    It has some extra control characters.
    Unix does not have those.
    The output I got was:
    <-ext file.
    <-e extra control characters.
    <-se.
    Kevin

    That makes more sense. The problem isn't with the Fortran program, but with the Unix terminal (xterm, or whatever you're using to display the output). If you pipe the output through od like this you'll see all the characters, including the ^M:
    bash-3.00$ fortranread | od -c
    0000000       w   i   n   f   i   l   e       i   s       -   >   T   h
    0000020   i   s       i   s       a       W   i   n   d   o   w   s   
    0000040   t   e   x   t       f   i   l   e   .  \r                   
    0000060                                                               
    0000100                                           <   -  \n       w   i
    0000120   n   f   i   l   e       i   s       -   >   I   t       h   a
    0000140   s       s   o   m   e       e   x   t   r   a       c   o   n
    0000160   t   r   o   l       c   h   a   r   a   c   t   e   r   s   .
    0000200  \r                                                           
    0000220                               <   -  \n       w   i   n   f   i
    0000240   l   e       i   s       -   >   U   n   i   x       d   o   e
    0000260   s       n   o   t       h   a   v   e       t   h   o   s   e
    0000300   .  \r                                                       
    0000320                                                               
    0000340                   <   -  \n
    0000347When the terminal sees the ^M character, it does a carriage return. That means that the next character gets written in the first column. Since the characters after the ^M are spaces, that makes the beginning of the lines appear blank.
    If you want to see the output you expect, you need to pipe it through "tr -d '\015'", or you need to make the Fortran program itself delete the ^M characters. For example, you could write "myline(1:len_trim(myline)-1)" to always strip the last character of the line.
    We should consider making formatted reads strip the ^M by default. I don't know whether any program would actually want them.

  • How to scan/ read a text file, pick up only lines you wanted.

    I'm new to Labview, I trying to wire a VI which can read a text file
    example below:
    Example: My Text File:
    1 abcd
    2 efgh
    8 aaaa
    1 uuuu
    and pick out only any line which start with number 1 (i.e 1 abcd)
    then output these 2 lines out to a a new text file?
    Thanks,
    Palmtree

    Hi,
    How do you creat your text files? Depending on the programm, there is added characters in the beginning and at the and of the file. So here you will find a VI to creat "raw" text files.
    To debug your VIs, use the probs and breakpoints, so you can solve the problem by your self or give an more accurate description of it.
    There is also the VI that read a integer and two strings  (%d %s %s)
    Attachments:
    creat text file.vi ‏9 KB
    read_from_file.vi ‏14 KB

  • Trying to read the text file via Flex FileStream.

    Hello,
    I am following the Flex Help and trying to read a text file.
    I have created project called test, and within test.mxml, I have
    created the <mx:script> tags and within I am pasting this
    code yet I get errors:
    What am I doing wrong? Please help.
    Please see the code:

    You cannot do all that complex assignment work outside of a
    function. Because of the way components are generated/compiled, the
    declared vars do not exist when called.
    Declare the vars in instance scope, but use an init()
    function to do the assignments.

  • Why does Read from Text file default to array of 9 elements

    I am writing to a text file starting with a type def. cluster (control) of say 15 dbl numeric elements, that works fine I open the tab-delimited text file and all of the elements appear in the file.  However when I read from the same text file back to the same type def. cluster (indicator), the read from text file defaults to 9 elements?? Is there a way to control how many elements are read from the file.  This all works great when I initially use a cluster of 9 elements and read back to a cluster of 9 elements.
    Solved!
    Go to Solution.

    From the LabVIEW Help: http://zone.ni.com/reference/en-XX/help/371361G-01/glang/array_to_cluster/
    Converts a 1D array to a cluster of elements of the same type as the array elements. Right-click the function and select Cluster Size from the shortcut menu to set the number of elements in the cluster.
    The default is nine. The maximum cluster size for this function is 256.
    Aside: so, how many times has this question been asked over the years?

  • How to open saved files using 'read from text file' function

    Hi everyone, I am having a hard time trying to solve the this particular problem ( probably because I am a newb to lanbview ). Anyway , I am able to save the acquired waveforms by using the 'Write to text file' icon. I did manually modify the block diagram of the 'Write to text file' icon and create the correct number of connector so as to make my program work. But now I have no idea on how to modify the block diagram of the 'Read from text file' block diagram to make my program 'open' my saved waveforms. Or i do not have to modify anything from the block diagram of the 'Read from text file'? Can anyone teach/help me connect up? Do i need the build array on the "open" page?
    Here are some screenshots on part of my program  
    let me know if you guys would need more information / screenshots thank you!
    Attachments:
    ss_save.jpg ‏94 KB
    ss_open.jpg ‏94 KB
    modified_writetotextfile.jpg ‏99 KB

    Ohmy, thanks altenbach. oh yeah i forgot about those sub VIs. will upload them now. Was rather demoralized after reading the comments and really struck me on how weak i'm at on labview really hope to get this done. But of course i have to study through and see how it works. Actually i am going to replace those 'signal generators sub vi' with ThoughtTechonology's sample code so i can obtain data waveforms real-time using Electrocardiography (ECG) ,Electromyography (EMG ) and Electroencephalography (EEG) hopefully i can find out how to connect the sample code.
    ( ps . cant connect it now unless my program is working otherwise labview will crash ) 
    ( p.s.s the encoder of my biofeedback trainer already acts as an DAQ so i wont need to place an DAQ assistant in my block diagram i suppose )
    The sample code of ThoughtTechnology is named as attachment.ashx.vi. too bad i cant use it and present it as my project
    Attachments:
    frequency detactor.vi ‏53 KB
    signal generator.vi ‏13 KB
    attachment.ashx.vi ‏40 KB

  • LabVIEW for ARM 2009 Read from text file bug

    Hello,
    If you use the read from text file vi for reading text files from a sdcard there is a bug when you select the option "read lines"
    you cannot select how many lines you want to read, it always reads the whole file, which cause a memory fault if you read big files!
    I fixed this in the code (but the software doesn't recognize a EOF anymore..) in CCGByteStreamFileSupport.c
    at row 709 the memory is allocated but it tries to allocate to much (since u only want to read lines).
    looking at the codes it looks like it supposed to allocated 256 for a string:
    Boolean bReadEntireLine = (linemode && (cnt == 0)); 
    if(bReadEntireLine && !cnt) {
      cnt = BUFINCR;    //BUFINCR=256
    but cnt is never false since if you select read lines this is the size of the file!
    the variable linemode is also the size of the file.. STRANGE!
    my solution:
    Boolean bReadEntireLine = (linemode && (cnt > 0));  // ==
     if(bReadEntireLine) {    //if(bReadEntireLine && !cnt) {
      cnt = BUFINCR;
    and now the read line option does work, and reads one line until he sees CR or LF or if the count of 256 is done.
    maybe the code is good but the data link of the vi's to the variables may be not, (cnt and linemode are the size of the file!)
    count should be the number of lines, like chars in char mode.
    linemode should be 0 or 1.
    Hope someone can fix this in the new version!
    greets,
    Wouter
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

    I have another solution, the EOF works with this one.
    the cnt is the bytes that are not read yet, so the first time it tries to read (and allocate 4 MB).
    you only want to say that if it's in line mode and cnt > 256 (BUFINCR) cnt = BUFINCR
    the next time cnt is the value of the bytes that are not read yet, so the old value minus the line (until CR LF) or if cnt (256) is reached.
    with this solution the program does not try to allocate the whole file but for the max of 256.
    in CCGByteStreamFileSupprt.c row 705
     if(linemode && (cnt>BUFINCR)){
       cnt = BUFINCR;
    don't use the count input when using the vi in line mode. count does not make sense, cnt will be the total file size. also the output will be an array.
    linemode seems to be the value of the file size but I checked this and it is just 0 or 1, so this is good
    update: damn it doesn't work!
    Wouter.
    "LabVIEW for ARM guru and bug destroyer"

  • Trying to parse a file-read from text file.vi

    I'm attempting to read a txt file that has tab separated data. In the fourth (or any) column is the only data I need. The data is a string of numbers (23.454).
    I've used the Read from Text File.vi and the Read From Spreadsheet.vi and I just don't seem to have enough LV background to extract the pertinent  data into a graph. any suggestions?

    (It is silly to use "delete from array" if all you want is a column. The correct function is "index array")
    Joe's idea above basically works fine. Here's a quick adapdation (the node before the graph is "index array" from the array palette.).
    Message Edited by altenbach on 06-11-2007 11:57 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    FileRead.png ‏11 KB

  • Set a timeout for "read from text file"

    I Need to read from a text file on a remote pc and use the read from text file function to do this. It wotks but sometimes this pc is down causing long wait times in my vi.
    Is there a way to set a timeout for the read from text file function, or is there an other solution?
    Thank you

    You could check that the path is valid first before you attempt to read the file.  hen put the file read in a True-False case structure based on the results of the check.  You can use the function "Check if File or Folder Exists"  It checks whether a file or folder exists on disk at a specified path. This VI works with standard files and folders as well as files in LLB files.   The function is found in the File I/O --> Advanced File Functions palette.
    Tom

  • Read from text file vi won't read file...

    I am very new to LV programming so I hope you forgive any stupid mistakes I am making.   I am using Ver. 8.2 on an XP machine.
    I have a small program that stores small data sets in text files and can update them individually or read and update them all sequentially, sending the data out a USB device.   Currently I am just using two data sets, each in their own small text file.  The delimiter is two commas ",,".
    The program works fine as written when run in the regular programming environment.   I noticed, however, as soon as I built it into a project that the one function where it would read each file sequentially to update both files the read from text file vi would return an empty data set, resulting in blank values being written back into the file.   I read and rewrite the values back to the text file to place the one updated field (price) in it'sproper place.  Each small text file is identified and named with a 4 digit number "ID".   I built it twce, and get the same result.  I also built it into an installer and unfortunately the bug travelled into the installation as well.
    Here is the overall program code in question:
    Here is the reading and parsing subvi:
    If you have any idea at all what could cause this I would really appreciate it!
    Solved!
    Go to Solution.

    Hi Kiauma,
    Dennis beat me to it, but here goes my two cents:
    First of all, it's great to see that you're using error handling - that should make troubleshooting a lot easier.  By any chance, have you observed error 7 when you try to read your files and get an empty data set?  (You've probably seen that error before - it means the file wasn't found)
    If you're seeing that error, the issue probably has something to do with this:
    Relative paths differ in an executable.  This knowledge base document sums it up pretty well. To make matters more confusing, if you ever upgrade to LabVIEW 2009 the whole scheme changes.  Also, because an installer contains the executable, building the installer will always yield the same results.
    Lastly, instead of parsing each set of commas using the "match pattern" function, there's a function called "spreadsheet string to array" (also on the string palette) that does exactly what you're doing, except with one function:
    I hope this is helpful...
    Jim

  • 'read from text file' erases the file

    I am trying to read text in from a text file.  This is the exact code I am using.  For some reason the output from 'read from text file' contains all the text that was originally in the file, but after the code executes the file is empty.  I have several other vi's which use the same code and the file is fine.  But whenever I run this code in this one specific vi the text file gets erased.

    What is in the rest of that "specific vi"? I just tried the code you show, in v2011, and it works as expected, doesn't clear file.
    What version are you running? Can you add an error out, or make sure error output is on in your LabVIEW configuration?
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion

  • Read from Text File - Help Bug?

    Hi - I am currently working on LV8 and I think that there is some misunderstanding potential in the help file. To be more exact in the help to the "Read From Text File" VI.
    The description for "count":
    " ... If count is <0, the function reads the entire file. The
    default is –1, which indicates to read a single line if you placed a checkmark
    next to the Read Lines shortcut menu item and to read the
    entire file if you removed the checkmark next to the item. "
    If count is lower than zero, the function reads the entire file. That sounds clear to me.
    The default is -1, which indicates to read a single line if you placed a checkmark next to the "Read Lines" shortcut menu item. Now what? Does it read a single line or the whole file?
    .. and to read the entire file if you removed the checkmark next to the item. I thought it reads the whole file if I use -1 ?
    the VI itself behaves as I'd expect it to:
    * If I place a checkmark next to Read Lines and put -1, I get an array containing the lines
    * If I remove the checkmark, I get only a single string item.
    Now where is the error? Is the VI not working properly or only the description a little bit ... strange ?

    ?hein??
    ?what?
    Both you guys lost me..
    And I drink coffee without sugar (being sweet enough, already) 
    Here is what I get from Context Help on the Read From Text File:
    Read from Text File
    Reads a specified number of characters or lines from a byte stream file. By default, this function reads all characters from the text file. Wire an integer value to count to specify how many individual characters you want to read starting with the first character. Right-click the function and place a checkmark next to the Read Lines option in the shortcut menu to read individual lines from the text file. When you select the Read Lines option in the shortcut menu, wire an integer value to the count input to specify how many individual lines you want to read from the file starting with the first line. Enter a value of -1 in count to read all characters and lines from the text file.
    Humm.
    New feature (again)..  If you select checkmark the Read Lines option, it will not send the text to a sting indicator, as shown in the attached image.  If selected, then it's expecting to write lines to an array of strings...  WHY???  I don't know..  I'll ask..
    Strange...  LV8 is full of mysteries... 
    RayR
    Attachments:
    bad write file.JPG ‏33 KB
    more bad write file.JPG ‏12 KB

  • Read from Text File Detailed Help need Clean-up

    This is probably well known and nobody has bothered fixing it but the detailed Help of the "Read from Text File" function is sort of ambiguous:
    -  statement 1: refnum out is the refnum of the file that the function read. You can wire this output to another file function, depending on what you want to do with the file. The default is to close the file if it is referenced by a file path or selected from the file dialog box. If file is a refnum or if you wire refnum out to another function, LabVIEW assumes that the file is still in use until you close it.
    - statement 2: If you wire a path to file, the function opens the file before reading from it and closes it afterwards.
    I have found statement 1 to be correct, which makes statement 2 incomplete (and sort of tautological in the sense that 1) you expect LabVIEW to open the file before reading from it if you provide a path instead of a refnum... and 2) if you use a path input to file AND use the refnum out for some other function, the file is NOT closed, as correctly stated in statement 1).
    Just sayin' ...

    X,
    It deeply concerns me that you would take my response to mean indifference. I certainly had no intention to belittle what you had to say. On the contrary, I took this up with the concerned team, and had a small discussion. If you say that what someone says on this forum is of lesser or no value to National Instruments, you could not be more wrong. It defeats the whole purpose of this public forum.
    My point was not that it is not an issue, it certainly seems to be. Please be rest assured that even if it does not look like it from the outside, each comment however big or small is taken back to our workplaces and some thoughts poured over it. 
    On the whole, I recognise that I had a role to play in this misunderstanding of tone, and I sincerely apologise.
    Warm Regards,
    Prashanth N
    National Instruments

Maybe you are looking for

  • Why is the import tab missing under the file tab?

    Why is import missing under the file tab? I want to import bookmarks etc. from Safari into Firefox.

  • Epson 740 won't print, 1280 prints fine

    I'm running a 15" 1.25 ghz G4 powerbook, OS 10.4.3: I've reinstalled the drivers, rebooted, I've deleted the printer from the list and added it back in, I've tried the gimp print driver, I repaired disk permissions (there were a lot in need of help).

  • Recording change in characteristics

    Hi All, I have characteristics in a document. Can we track changes of the characteristics? I am preparing a report in BW of the documents created through Easy DMS. Does anyone has data model showing tables and their relationships? thanks and regards,

  • BW reporting authorisation using customer exit

    Hi, We are planning to implement BW reporting authorisations using customer exit, so that authorisations can be filled at the run time, this is to avoid maintaining huge number of authorisations. If any one has implemented this before, Please send me

  • Publish error when trying to upload pages

    I am struggling with Iweb. 4 pages went OK then the Error Message. Updated to 1-1-1 and the next page flew! Now, nowt lad! stuck again. Come on Apple! After 6 years of praising Mac. What a load of tripe this Iweb is! Imac G5 1-8 1g ram   Mac OS X (10