Posted to tcl by Saedelaere at Thu Nov 08 23:05:54 GMT 2007view raw
- #! /bin/sh
- # the next line restarts using wish \
- exec wish "$0" "$@"
- set file /tmp/TV-Viewer/channels.txt
- set i 1
- while {[gets $file line]!=-1} {
- foreach {kanal channel} [split $line] {
- set kanale($i,kanal) $kanal
- set kanale($i,channel) $channel
- incr i
- }
- }
- This is my code
- now i get the following error:
- saedelaere@elkbase-desktop:~> /home/saedelaere/Programme/Skripte/Programmierung/variablen.tcl
- Error in startup script: can not find channel named /tmp/TV-Viewer/channels.txt
- while executing
- "gets $file line"
- (file "/home/saedelaere/Programme/Skripte/Programmierung/variablen.tcl" line 1)