Skip to content

Commit 74bbbd9

Browse files
author
GeekTrainer
committed
Module 11
1 parent 8a99ceb commit 74bbbd9

File tree

3 files changed

+77
-0
lines changed

3 files changed

+77
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2013
4+
VisualStudioVersion = 12.0.30723.0
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "Module11WritingFiles", "Module11WritingFiles\Module11WritingFiles.pyproj", "{F133A98E-0171-4987-84FE-3E13A09636CE}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Release|Any CPU = Release|Any CPU
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{F133A98E-0171-4987-84FE-3E13A09636CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15+
{F133A98E-0171-4987-84FE-3E13A09636CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(SolutionProperties) = preSolution
18+
HideSolutionNode = FALSE
19+
EndGlobalSection
20+
EndGlobal
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
fileName = 'demo.txt'
2+
WRITE = 'w'
3+
APPEND = 'a'
4+
5+
data = input('Please enter file info')
6+
7+
file = open(fileName, mode = WRITE)
8+
file.write(data)
9+
file.close()
10+
11+
#file = open(fileName, mode = WRITE)
12+
#file.write('Susan, 29\n')
13+
#file.write('Christopher, 31')
14+
#file.close()
15+
16+
print('File written successfully')
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<SchemaVersion>2.0</SchemaVersion>
6+
<ProjectGuid>f133a98e-0171-4987-84fe-3e13a09636ce</ProjectGuid>
7+
<ProjectHome>.</ProjectHome>
8+
<StartupFile>Module11WritingFiles.py</StartupFile>
9+
<SearchPath>
10+
</SearchPath>
11+
<WorkingDirectory>.</WorkingDirectory>
12+
<OutputPath>.</OutputPath>
13+
<Name>Module11WritingFiles</Name>
14+
<RootNamespace>Module11WritingFiles</RootNamespace>
15+
</PropertyGroup>
16+
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
17+
<DebugSymbols>true</DebugSymbols>
18+
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
19+
</PropertyGroup>
20+
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
21+
<DebugSymbols>true</DebugSymbols>
22+
<EnableUnmanagedDebugging>false</EnableUnmanagedDebugging>
23+
</PropertyGroup>
24+
<ItemGroup>
25+
<Compile Include="Module11WritingFiles.py" />
26+
</ItemGroup>
27+
<PropertyGroup>
28+
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
29+
<PtvsTargetsFile>$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets</PtvsTargetsFile>
30+
</PropertyGroup>
31+
<Import Condition="Exists($(PtvsTargetsFile))" Project="$(PtvsTargetsFile)" />
32+
<Import Condition="!Exists($(PtvsTargetsFile))" Project="$(MSBuildToolsPath)\Microsoft.Common.targets" />
33+
<!-- Uncomment the CoreCompile target to enable the Build command in
34+
Visual Studio and specify your pre- and post-build commands in
35+
the BeforeBuild and AfterBuild targets below. -->
36+
<!--<Target Name="CoreCompile" />-->
37+
<Target Name="BeforeBuild">
38+
</Target>
39+
<Target Name="AfterBuild">
40+
</Target>
41+
</Project>

0 commit comments

Comments
 (0)