Skip to content

Commit 6b63f70

Browse files
Joost Voskuilcmendible
authored andcommitted
Update dotnet ready to include sample.txt
1 parent 7bacc86 commit 6b63f70

File tree

2 files changed

+516
-0
lines changed

2 files changed

+516
-0
lines changed

exercisefiles/dotnet/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,22 @@ _Hint: Pay attention to HttpClient._
120120

121121
> **_NOTE:_** Copilot can also help with these kind of commands locally. The feature is called Copilot in the CLI. You can learn more information about this feature [here](https://docs.github.com/en/copilot/github-copilot-in-the-cli/about-github-copilot-in-the-cli).
122122
123+
- **/GetFullTextFile**:
124+
125+
* Read `sample.txt`` and return lines that contains the word "Fusce"
126+
127+
> **_NOTE:_** Becareful with this implementation, since this normally reads the full content of the file before analizing it, so memory usage is high and may fail when files are too big.
128+
>
129+
> You can use Copilot Code completion or inline chat. Once done you can also use Copilot Inline Chat to refactor the code to put this logic in a function.
130+
131+
- **/GetLineByLinefromtTextFile**:
132+
133+
* Read `sample.txt` line by line
134+
* Create a promise to read the file line by line, and return a list of lines that contains the word "Fusce"
135+
* Return the list of lines
136+
137+
> **_NOTE:_** You can use Copilot Code completion or inline chat. Once done you can also use Copilot Inline Chat to refactor the code to put this logic in a function.
138+
123139
- **/calculatememoryconsumption**:
124140

125141
* Return the memory consumption of the process in GB, rounded to 2 decimals

0 commit comments

Comments
 (0)