Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

feof (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

Syntax

c = feof(fid)

Description

Determines whether the file mark reaches the end of the file.

Examples

Inputs

Name Description
fid Specifies the identifier for the file. Use the fopen function to open a file and assign it an identifier. fid is an integer.

Outputs

Name Description
c Returns 1 if the file mark reaches the end of the file. Otherwise, this function returns 0. c is a Boolean value.

Examples

fid = fopen('Test.txt', 'w');
fprintf(fid, 'LabVIEW\nMathScript\n');
fclose(fid);
fid = fopen('Test.txt');
while(~feof(fid))
s = fgetl(fid)
end
fclose(fid);

Related Topics

end
fclose
fgetl
fopen
frewind
fseek
while


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit