Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .vscode/cSpell.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// cSpell Settings
{
// Version of the setting file. Always 0.1
"version": "0.1",
"version": "0.2",
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
"words": [
"IntelliTect",
"Inigo",
"CRNL",
"fname",
"lname",
"icmp",
"CRNL",
"Inigo",
"IntelliTect",
"Ironman",
"lname",
"VB'S"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [
]
}
"flagWords": []
}
3 changes: 3 additions & 0 deletions src/Chapter06/Listing06.13.DataPersistenceToAFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public static void Store(Employee employee)
// for the filename. FileMode.Create will force
// a new file to be created or override an
// existing file
// Note: This code could be improved with a using
// statement — a construct that we have avoided because
// it has not yet been introduced.
FileStream stream = new(
employee.FirstName + employee.LastName + ".dat",
FileMode.Create);
Expand Down
5 changes: 4 additions & 1 deletion src/Chapter06/Listing06.14.DataRetrievalFromAFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ public static void Store(Employee employee)
// Instantiate a FileStream using FirstNameLastName.dat
// for the filename. FileMode.Create will force
// a new file to be created or override an
// existing file
// existing file.
// Note: This code could be improved with a using
// statement — a construct that we have avoided because
// it has not yet been introduced.
FileStream stream = new(
employee.FirstName + employee.LastName + ".dat",
FileMode.Create);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public static void Main()
data = data * 3.5 + 28.6;
if(data == 2.4 + 112 + 26.2)
// The distance (in miles) for the swim, bike, and
// run portions of an Ironman traithlon, respectively
// run portions of an Ironman triathlon, respectively
{
Console.WriteLine(
$"{data} makes for a long triathlon.");
Expand Down