http://golf.shinh.org/p.rb?delete+blank+lines
#include <stdio.h> int main() { char line[256]; while (gets(line)) { if (line[0]) puts(line); } }