About AWS C# Docker Design Patterns Learning Patterns Principles
Carl Paton
About AWS C# Docker Design Patterns Learning Patterns Principles
2019-Jul

Reading Text Files

The simplest way to do this is to use the .Net framework classes: System.IO.File

ReadAllText

1
2
var filePath = @"C:\Users\cpaton\Downloads\hoehoe.txt";
var jsonText = File.ReadAllText(filePath);

ReadLines

1
2
3
4
5
6
var filePath = @"C:\Users\cpaton\Downloads\hoehoe.txt";
var lines = File.ReadLines(filePath);
foreach (var line in lines)
{
//foo
}
Share
  • c#
Newer
Objectives
Older
Write To Text Files

Search

Recent Posts

  • Chartjs With React
  • ReactPDF
  • Nginx Config
  • SQL Read, Write using Excel file
  • React JS Custom Hook

Tag Cloud

.net library agile algorithms angular ansible anti pattern architecture arduino assembly authentication aws beer behavioural patterns board games browser utilities c# cad cam client side cloud events cnc continuous integration creational patterns css csv d3 printing data structures ddd dependency injection design docker docker compose elk stack encryption feature management food git hexo ide iot javascript jquery json kibana kubernetes learning resources life-hacks linux logging mocking model airplanes mvc mysql net core nginx nuget open source orm patterns principles postgresql power shell python random raspberry pi reactjs reactjs class-based redis reporting rosetta code serialization software testing sonarqube sql sqlite ssh static code analysis structural patterns swagger threading typescript utilities validation virtualization web api web forms wip wood work wordpress xamarin xml
© 2022 Carl Paton | Powered by Github Pages and Hexo