fgets()

Reads a line from a file. Returns a string; the current line is returned and the line advanced. Returns an empty string for blank lines. Returns NULL at end-of-file.

Syntax:

fgets(fileID);

where

fileID is the file value, created with fopen().

Example:
decl fID, fLine;
fID = fopen("hello", "R");
fLine = fgets(fID);
fLine = "hello there"
fclose(fID);

Download Example File:

The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.

Copy File
Insert Equations from File
Split SP2 MDIF File

Where Used:

Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources