Unable to use cat command in linux

a lab task Create file with content inside /home/thor/ directory.

file name : contents_file.txt

content : This is not empty file

i used cat > contents_file.txt
not empty fie
still the task is incomplete
hint is With help of echo command, redirect the content into a file.
Run: echo "This is not empty file" > /home/thor/contents_file.txt
but i want to do it with cat command pls help

Hello @shashwatshah101293

What is the content of the file?
“not empty file” or “This is not empty file”
Content of contents_file.txt need to be “This is not empty file”.
Did you get a chance to check your contents_file.txt after you have done the task using cat > contents_file.txt.

Thanks,
Wai