The following code works most of the time, but ocasionally returns an error. I have a C function that generates a report (ascii text) and returns the filename (absolute path). 11 out of 13 reports return fine and I am able to open them without a failure but 2 of the reports return the filename okay (debug statement), but the open fails. All of the reports call the same function to open the report with the following lines:
set filename [ <func_name> ]
set fileid [open $filename r]
puts "fileid: $fileid"
Example output:
Valid fileid: fileid11
Invalid fileid: 2fileid8
Is there a way to debug this and determine the problem?
set filename [ <func_name> ]
set fileid [open $filename r]
puts "fileid: $fileid"
Example output:
Valid fileid: fileid11
Invalid fileid: 2fileid8
Is there a way to debug this and determine the problem?