Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #1 from Moon1102/master
中文文档
- Loading branch information
Showing
2 changed files
with
108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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)官网。 | ||
|