Skip to content

Commit

Permalink
+++ Test 025.FileReadWriteAll
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerard committed Nov 26, 2013
1 parent 939d4e9 commit 35fe68c
Show file tree
Hide file tree
Showing 10 changed files with 141 additions and 0 deletions.
1 change: 1 addition & 0 deletions 025.FileReadWriteAll/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/Output/
1 change: 1 addition & 0 deletions 025.FileReadWriteAll/NETbin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*.txt
Binary file not shown.
Binary file added 025.FileReadWriteAll/NETbin/FileReadWriteAll.pdb
Binary file not shown.
1 change: 1 addition & 0 deletions 025.FileReadWriteAll/src/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/*.suo
20 changes: 20 additions & 0 deletions 025.FileReadWriteAll/src/FileReadWriteAll.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FileReadWriteAll", "FileReadWriteAll\FileReadWriteAll.csproj", "{3CBF425F-D494-49B2-809E-D8A6B5A4AFB1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3CBF425F-D494-49B2-809E-D8A6B5A4AFB1}.Debug|x86.ActiveCfg = Debug|x86
{3CBF425F-D494-49B2-809E-D8A6B5A4AFB1}.Debug|x86.Build.0 = Debug|x86
{3CBF425F-D494-49B2-809E-D8A6B5A4AFB1}.Release|x86.ActiveCfg = Release|x86
{3CBF425F-D494-49B2-809E-D8A6B5A4AFB1}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
2 changes: 2 additions & 0 deletions 025.FileReadWriteAll/src/FileReadWriteAll/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/bin/
/obj/
57 changes: 57 additions & 0 deletions 025.FileReadWriteAll/src/FileReadWriteAll/FileReadWriteAll.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{3CBF425F-D494-49B2-809E-D8A6B5A4AFB1}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>File</RootNamespace>
<AssemblyName>FileReadWriteAll</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
23 changes: 23 additions & 0 deletions 025.FileReadWriteAll/src/FileReadWriteAll/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace FileReadWriteAll
{
class Program
{
static void Main(string[] args)
{
Program p = new Program();
p.Run();
}

private void Run()
{
File.WriteAllText("test.txt", "Hello I'm a pice of Text!\nAnd I'm a breaked line!");
Console.WriteLine(File.ReadAllText("test.txt"));
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("FileReadWriteAll")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FileReadWriteAll")]
[assembly: AssemblyCopyright("Copyright © 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("3f873d68-d966-4008-ab86-871dfdda09aa")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

0 comments on commit 35fe68c

Please sign in to comment.