Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Ruby, 22 20 bytes

loop{open(?a,?w)<<1}

Repeatedly truncates and writes a 1 to the file a.

Thanks to VenteroVentero for 2 bytes!

Ruby, 22 20 bytes

loop{open(?a,?w)<<1}

Repeatedly truncates and writes a 1 to the file a.

Thanks to Ventero for 2 bytes!

Ruby, 22 20 bytes

loop{open(?a,?w)<<1}

Repeatedly truncates and writes a 1 to the file a.

Thanks to Ventero for 2 bytes!

added 92 characters in body
Source Link
Doorknob
  • 72.1k
  • 20
  • 146
  • 393

Ruby, 2222 20 bytes

loop{open(?a,?w).puts<<1}

Repeatedly truncates and writes a newline1 to the file a.

Thanks to Ventero for 2 bytes!

Ruby, 22 bytes

loop{open(?a,?w).puts}

Repeatedly truncates and writes a newline to the file a.

Ruby, 22 20 bytes

loop{open(?a,?w)<<1}

Repeatedly truncates and writes a 1 to the file a.

Thanks to Ventero for 2 bytes!

Source Link
Doorknob
  • 72.1k
  • 20
  • 146
  • 393

Ruby, 22 bytes

loop{open(?a,?w).puts}

Repeatedly truncates and writes a newline to the file a.