If you foget filename argument, crontab will try to read a crontab from its standard input.
Don't try to exit by typing <control-D> , this will erase your entire crontab.Use <control-C> instead.