Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #1 from Moon1102/master
中文文档
  • Loading branch information
RockfordWei committed Dec 22, 2016
2 parents 8139f3a + 78b5fef commit a3d5bf4
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
# Perfect File Handling Example
# Perfect File Handling Example [简体中文](README.zh_CN.md)

<p align="center">
<a href="http://perfect.org/get-involved.html" target="_blank">
Expand Down
107 changes: 107 additions & 0 deletions README.zh_CN.md
@@ -0,0 +1,107 @@
# Perfect文件处理示例 [English](README.md)

<p align="center">
<a href="http://perfect.org/get-involved.html" target="_blank">
<img src="http://perfect.org/assets/github/perfect_github_2_0_0.jpg" alt="Get Involed with Perfect!" width="854" />
</a>
</p>

<p align="center">
<a href="https://github.com/PerfectlySoft/Perfect" target="_blank">
<img src="http://www.perfect.org/github/Perfect_GH_button_1_Star.jpg" alt="Star Perfect On Github" />
</a>
<a href="http://stackoverflow.com/questions/tagged/perfect" target="_blank">
<img src="http://www.perfect.org/github/perfect_gh_button_2_SO.jpg" alt="Stack Overflow" />
</a>
<a href="https://twitter.com/perfectlysoft" target="_blank">
<img src="http://www.perfect.org/github/Perfect_GH_button_3_twit.jpg" alt="Follow Perfect on Twitter" />
</a>
<a href="http://perfect.ly" target="_blank">
<img src="http://www.perfect.org/github/Perfect_GH_button_4_slack.jpg" alt="Join the Perfect Slack" />
</a>
</p>

<p align="center">
<a href="https://developer.apple.com/swift/" target="_blank">
<img src="https://img.shields.io/badge/Swift-3.0-orange.svg?style=flat" alt="Swift 3.0">
</a>
<a href="https://developer.apple.com/swift/" target="_blank">
<img src="https://img.shields.io/badge/Platforms-OS%20X%20%7C%20Linux%20-lightgray.svg?style=flat" alt="Platforms OS X | Linux">
</a>
<a href="http://perfect.org/licensing.html" target="_blank">
<img src="https://img.shields.io/badge/License-Apache-lightgrey.svg?style=flat" alt="License Apache">
</a>
<a href="http://twitter.com/PerfectlySoft" target="_blank">
<img src="https://img.shields.io/badge/Twitter-@PerfectlySoft-blue.svg?style=flat" alt="PerfectlySoft Twitter">
</a>
<a href="http://perfect.ly" target="_blank">
<img src="http://perfect.ly/badge.svg" alt="Slack Status">
</a>
</p>

一个Perfect的文件处理示例


该项目通过SPM软件包管理器编译,是[Perfect](https://github.com/PerfectlySoft/Perfect)项目之一</br>
请确保您已经安装了Xcode 8.0或更高版本。

## 准备工作 - 使用Xcode 8

* 导出或下载工程
* 在终端中,导航到目录并执行

```
swift package generate-xcodeproj
```

* 打开 `Perfect-FileHandling.xcodeproj`
* 在Xcode的构建目标下拉来选择可执行文件
* 在Xcode中使用(cmd-R)命令来编译运行项目工程

您将会在Xcode控制台看到如下输出:

```
Perfect File Handling Examples
==============================
Working Directory set.
Created and written to testFile.txt:
==============================
Contents of testFile.txt:
Hello, World!
This file has been changed.
==============================
Contents of testFileCopy.txt:
Hello, World!
==============================
Working Directory set to parent.
File: testFile.txt
==============================
Deleting: testFile.txt
Finished
==============================
Program ended with exit code: 0
```


## 准备工作 - 使用终端

* 导出或下载工程;
* 在终端中,导航到工程目录
* 执行 `swift build`命令
* 项目编译成功后, 请执行 `./.build/debug/Perfect-FileHandling`

您将看到输出同上.

## 问题报告

目前我们已经把所有错误报告合并转移到了JIRA上,因此github原有的错误汇报功能不能用于本项目。

您的任何宝贵建意见或建议,或者发现我们的程序有问题,欢迎您在这里告诉我们。[http://jira.perfect.org:8080/servicedesk/customer/portal/1](http://jira.perfect.org:8080/servicedesk/customer/portal/1)

目前问题清单请参考以下链接: [http://jira.perfect.org:8080/projects/ISS/issues](http://jira.perfect.org:8080/projects/ISS/issues)



## 更多内容
关于Perfect更多内容,请参考[perfect.org](http://perfect.org)官网。

0 comments on commit a3d5bf4

Please sign in to comment.