Hi,
i want to make in script where i want to use an database (.dat).
Everyline is one entry. Now i want to convert the file into an list.
How can I make this?
Plz help
Thx
Smokefoot
Code: Select all
set fid [open $file r]
while {![eof $fid]} {
set line [gets $fid]
lappend somelist $line
}
close $fidCode: Select all
set fp [open file.dat r]
set list [split [read -nonewline $fp] \n]
close $fp