Romain Andrieux
Ansys Employee

Hello,

 

In your situation, you are using format string "%d" which will read an int; however numActual is of type kcg_int8 which is by default a 'char', causing an Access Violation (since you are trying to write 32bits into 8bits) when perfoming the fscanf. To fix it you can change the string formating to "%c". 

Hope this helps.

 

Best Regards

Romain