Created
January 17, 2019 16:31
-
-
Save parzibyte/15fc7f78f80575dfb5b7d974e286f3fb to your computer and use it in GitHub Desktop.
Escribir cadena en archivo created by parzibyte - https://repl.it/@parzibyte/Escribir-cadena-en-archivo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hola, mundo. Soy una cadena :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cadena = "Hola, mundo. Soy una cadena :)" | |
NOMBRE_ARCHIVO = "escrito.txt" | |
open(NOMBRE_ARCHIVO, "w") do |archivo| | |
archivo.write(cadena) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment