fgets
📝 Syntax
📥 Input argument
📤 Output argument
📄 Description
💡 Examples
🔗 See also
🕔 History
Version
📄 Description
Last updated
Last updated
fid = fopen([nelsonroot(), '/etc/startup.m']);
tline = fgets(fid);
while ischar(tline)
disp(tline)
tline = fgets(fid);
end
fclose(fid);fid = fopen([nelsonroot(), '/etc/startup.m']);
tline = fgets(fid, 5);
while ischar(tline)
disp(tline)
tline = fgets(fid, 5);
end
fclose(fid);