Hi i am writing a simple script,
all i want to to is read a file and print its lines.
the script:
#!/bin/csh
set fid [open my_file.dat r+]
while {![eof $fid]} {
set line [gets $fid]
puts $fid
}
close $fid
and when i run :
source my_script.tcl
i am getting:
"set: Variable name must begin with a letter."
what am i doing wrong?...
thanks.
all i want to to is read a file and print its lines.
the script:
#!/bin/csh
set fid [open my_file.dat r+]
while {![eof $fid]} {
set line [gets $fid]
puts $fid
}
close $fid
and when i run :
source my_script.tcl
i am getting:
"set: Variable name must begin with a letter."
what am i doing wrong?...
thanks.