reading from files and list the contents

From: Lese (lese1915_at_yahoo.com.au)
Date: 07/31/04


Date: Sat, 31 Jul 2004 15:13:04 +1000

Hi all,
How do a I write a function in tcl to read from file and then list out
say probably in a tk text box or something? The file probably has texts like
111,One
222,Two
Each line in the file is a single entity, with the index and the data.
Probably should group the index and data into different list or array?
thanks..



Relevant Pages

  • Re: function and structures
    ... C code and i have to rewrite the code in TcL. ... is to assign to it with a set command (or some other commands such ... probably the best way is to use a Tcl array. ... Functions are declared with the proc command: ...
    (comp.lang.tcl)
  • Re: function and structures
    ... lines,, i want to implement the same in TcL. ... is to assign to it with a set command (or some other commands such ... probably the best way is to use a Tcl array. ... Functions are declared with the proc command: ...
    (comp.lang.tcl)
  • Re: Question concerning object-oriented programming
    ... Dispose has to do with releasing unmanaged resources (though there are ... printable and readable string in all human languages. ... What the [array get] does is create a list, and then the list has its ... I also wrote my own data structure code in C as a loadable Tcl ...
    (comp.programming)
  • Re: 2D arrays simulated using lists
    ... I would be very sad to see you believe Tcl doesn't meet your ... of index, so I'm comparing the indexes at first, then I'm comparing ... using [array set] because I thought that it would make the whole ... array set ListeActuelleAgents [list ...
    (comp.lang.tcl)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... I wasn't setting the proper size of the byte array initially. ... noticed you provided a link for the TCL Library. ... Brent's book mentions to build two prototypes and ...
    (comp.lang.tcl)