Skip to content

Commit 9a7ff3a

Browse files
committed
without fio use in rest of course
1 parent ec76ce2 commit 9a7ff3a

File tree

8 files changed

+17
-27
lines changed

8 files changed

+17
-27
lines changed

cs_project1/cs_project1.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<DebugSymbols>true</DebugSymbols>
1515
<DebugType>full</DebugType>
1616
<Optimize>false</Optimize>
17-
<OutputPath>bin\Debug</OutputPath>
17+
<OutputPath>.</OutputPath>
1818
<DefineConstants>DEBUG;</DefineConstants>
1919
<ErrorReport>prompt</ErrorReport>
2020
<WarningLevel>4</WarningLevel>
@@ -24,7 +24,7 @@
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
2525
<DebugType>full</DebugType>
2626
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release</OutputPath>
27+
<OutputPath>.</OutputPath>
2828
<ErrorReport>prompt</ErrorReport>
2929
<WarningLevel>4</WarningLevel>
3030
<Externalconsole>true</Externalconsole>
@@ -53,9 +53,5 @@
5353
<Project>{DC88927E-04FA-4738-A07B-D5188AEAB924}</Project>
5454
<Name>ui</Name>
5555
</ProjectReference>
56-
<ProjectReference Include="..\fio\fio.csproj">
57-
<Project>{38702508-4BEE-4055-B478-1F9FA30C1630}</Project>
58-
<Name>fio</Name>
59-
</ProjectReference>
6056
</ItemGroup>
6157
</Project>

cs_project1/place.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public Place (string description)
3939
/// Remaining paragraph: place description, blank line terminated
4040
public static Dictionary<string, Place> createPlaces (string fileName)
4141
{
42-
StreamReader reader = FIO.OpenReader(fileName);
42+
StreamReader reader = new StreamReader(fileName);
4343
// Map to return
4444
Dictionary<string, Place> places = new Dictionary<string, Place> ();
4545

csproject_stub/csproject_stub.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<DebugSymbols>true</DebugSymbols>
1515
<DebugType>full</DebugType>
1616
<Optimize>false</Optimize>
17-
<OutputPath>bin\Debug</OutputPath>
17+
<OutputPath>.</OutputPath>
1818
<DefineConstants>DEBUG;</DefineConstants>
1919
<ErrorReport>prompt</ErrorReport>
2020
<WarningLevel>4</WarningLevel>
@@ -24,7 +24,7 @@
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
2525
<DebugType>full</DebugType>
2626
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release</OutputPath>
27+
<OutputPath>.</OutputPath>
2828
<ErrorReport>prompt</ErrorReport>
2929
<WarningLevel>4</WarningLevel>
3030
<Externalconsole>true</Externalconsole>
@@ -54,9 +54,5 @@
5454
<Project>{DC88927E-04FA-4738-A07B-D5188AEAB924}</Project>
5555
<Name>ui</Name>
5656
</ProjectReference>
57-
<ProjectReference Include="..\fio\fio.csproj">
58-
<Project>{38702508-4BEE-4055-B478-1F9FA30C1630}</Project>
59-
<Name>fio</Name>
60-
</ProjectReference>
6157
</ItemGroup>
6258
</Project>

csproject_stub/place.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public Place (string description)
3535
/// Remaining paragraph: place description, blank line terminated
3636
public static Dictionary<string, Place> createPlaces (string fileName)
3737
{
38-
StreamReader reader = FIO.OpenReader(fileName);
38+
var reader = new StreamReader(fileName);
3939
// Map to return
4040
Dictionary<string, Place> places = new Dictionary<string, Place> ();
4141

dict_lab_stub/dict_lab_stub.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<DebugSymbols>true</DebugSymbols>
1515
<DebugType>full</DebugType>
1616
<Optimize>false</Optimize>
17-
<OutputPath>bin\Debug</OutputPath>
17+
<OutputPath>.</OutputPath>
1818
<DefineConstants>DEBUG;</DefineConstants>
1919
<ErrorReport>prompt</ErrorReport>
2020
<WarningLevel>4</WarningLevel>
@@ -24,7 +24,7 @@
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
2525
<DebugType>full</DebugType>
2626
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release</OutputPath>
27+
<OutputPath>.</OutputPath>
2828
<ErrorReport>prompt</ErrorReport>
2929
<WarningLevel>4</WarningLevel>
3030
<Externalconsole>true</Externalconsole>
@@ -45,10 +45,6 @@
4545
<None Include="help_not_responses2.txt" />
4646
</ItemGroup>
4747
<ItemGroup>
48-
<ProjectReference Include="..\fio\fio.csproj">
49-
<Project>{38702508-4BEE-4055-B478-1F9FA30C1630}</Project>
50-
<Name>fio</Name>
51-
</ProjectReference>
5248
<ProjectReference Include="..\ui\ui.csproj">
5349
<Project>{DC88927E-04FA-4738-A07B-D5188AEAB924}</Project>
5450
<Name>ui</Name>

dict_lab_stub/fake_help.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ class FakeHelp
1010

1111
public static void Main()
1212
{
13-
StreamReader reader = FIO.OpenReader("help_not_defaults.txt");
13+
StreamReader reader = new StreamReader("help_not_defaults.txt");
1414
// special data is in the first two paragraphs
1515
string welcome = FileUtil.ReadParagraph(reader);
1616
string goodbye = FileUtil.ReadParagraph(reader);
1717
List<string> guessList = // rest of the file gives a
1818
FileUtil.GetParagraphs(reader); // list of random responses
1919
reader.Close();
2020

21-
reader = FIO.OpenReader("help_not_responses.txt");
21+
reader = new StreamReader("help_not_responses.txt");
2222
Dictionary<string, string> responses =
2323
FileUtil.GetDictionary(reader);
2424
reader.Close();

dict_lab_stub/file_util.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public static string ReadParagraph(StreamReader reader)
1515
// REPLACE the next line with your lines of code
1616
return "You have not coded ReadParagraph yet!\n";
1717
}
18-
// start GetParagraphs chunk
18+
19+
// start GetParagraphs chunk
1920
/// Read the remaining empty-line terminated paragraphs
2021
/// from reader into a new list of paragraph strings,
2122
/// and return the list.
@@ -32,7 +33,8 @@ public static List<string> GetParagraphs(StreamReader reader)
3233

3334
return all;
3435
}
35-
// start GetDictionary chunk
36+
37+
// start GetDictionary chunk
3638
/// Return a new Dictionary, taking data for it from reader.
3739
/// Reader contains key-value pairs, where each single-line key is
3840
/// followed by a possibly multi-line paragraph value that is terminated
@@ -47,7 +49,7 @@ public static Dictionary<string, string> GetDictionary(StreamReader reader)
4749

4850
return d;
4951
}
50-
// end GetDictionary chunk
52+
// end GetDictionary chunk
5153

5254
//Altered Extra credit documentation for GetDictionary:
5355
/// Return a new Dictionary, taking data for it from reader.

grade_file_homework_stub/grade_file_homework_stub.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<DebugSymbols>true</DebugSymbols>
1515
<DebugType>full</DebugType>
1616
<Optimize>false</Optimize>
17-
<OutputPath>bin\Debug</OutputPath>
17+
<OutputPath>.</OutputPath>
1818
<DefineConstants>DEBUG;</DefineConstants>
1919
<ErrorReport>prompt</ErrorReport>
2020
<WarningLevel>4</WarningLevel>
@@ -24,7 +24,7 @@
2424
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
2525
<DebugType>full</DebugType>
2626
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release</OutputPath>
27+
<OutputPath>.</OutputPath>
2828
<ErrorReport>prompt</ErrorReport>
2929
<WarningLevel>4</WarningLevel>
3030
<Externalconsole>true</Externalconsole>

0 commit comments

Comments
 (0)