Re: cat the file and put it in variables
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: cat the file and put it in variables

From: <abhishekkabra@gmail.com>
Date: Mon Jun 06 2005 - 07:35:38 CEST

to simple
1.open the file set file [ open filename r ]
2.read the whole file set str [read $file]
3.split str with "\n" or "\r" newline character
4.foeach loop will help you to access whole line ( that has 2 elements
)

Abhishek
Received on Thu Sep 29 14:20:08 2005