Problem Description Write a script that creates a text file
Problem Description
Write a script that creates a text file named AwesomeFile.txt. The file contents should be the exact phrase \"Matlab is awesome!\"
#FILE, #CHAR
Problem Description Write a script that creates a text file named AwesomeFile.txt. The file contents should be the exact phrase \"Matlab is awesome!\" #FILE, #CHAR Solution MATLAB Documentation 1 %Enter commands here to create the file with the name and contents specified in the problem statem Test Submit Reset You have 3 submissions remaininpSolution
fileID = fopen(filename,permission)
fopen command used to open file ,if already exit it will overwrite the old.
permission -->\'w\'--> Open or create new file for writing. Discard existing contents, if any.
fclose(); -->to close file connection.It is ideal practice to close all files.
code
fid = fopen(\'AwesomeFile.txt,\'w\');
fid = fclose(fid);
