-
-
Save parzibyte/c0690c0ca0a4fe877035ea5c4ea1dd4b to your computer and use it in GitHub Desktop.
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
using System; | |
namespace LeerArchivoDeTextoCSharp | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
/* | |
https://parzibyte.me/blog | |
*/ | |
string ubicacionArchivo = "C:\\Users\\parzibyte\\Desktop\\archivo.txt"; | |
System.IO.StreamReader archivo = new System.IO.StreamReader(ubicacionArchivo); | |
string linea; | |
while ((linea = archivo.ReadLine()) != null) | |
{ | |
Console.WriteLine("Tenemos una línea:"); | |
Console.WriteLine(linea); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment