Channel Error

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hey everybody,

 

running the script attached, the following error is occuring:

Error_Channel.jpeg.841229cfb8ee240038b90836e75db2c9.jpeg

 

I have absolutely no clue why this is happening. Can you maybe help me out?

 

Kind regards

Simon

 

Unable to find an attachment - read this blog

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited November 2018

    Hi,

     

    Why don't you give the full file path? 

  • tinh
    tinh Altair Community Member
    edited November 2018

    Hi

    Maybe you closed the file before using 'gets'

     

    Try this example not to use 'gets':

     

    set f [open path.txt]

    set buffer [read $f]

    close $f

    foreach line [split $buffer \n] {

         set fields [split $line ,]

          ....

    }

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited November 2018

    Thanks Thin, this helped us a lot!