Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5186

Identify Empty File in Skill

$
0
0

Hi everyone,

I reading a file by following command:

while(gets(LinValue myFile)

;;; body 

);while ends

When file is empty, I am getting following error : 

*Error* range: argument #1 should be a number (type template = "n") - nil
*Error* load: error while loading file - "*string*"

I am checking the file with isFile(myFile), but my file exists but is empty. How can I check if file is empty using SKILL? or any other solution to this problem.

Thanks in advance

Amar


Viewing all articles
Browse latest Browse all 5186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>