Guest User

Untitled

a guest
Nov 20th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. func print<Target>(_ items: Any..., separator: String = default, terminator: String = default, to output: inout Target) where Target : TextOutputStream
  2.  
  3. func debugPrint<Target>(_ items: Any..., separator: String = default, terminator: String = default, to output: inout Target) where Target : TextOutputStream
  4.  
  5. func writeIntoFile() {
  6. if let documentDirectoryPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
  7. let filePath = documentDirectoryPath + "/logfile.txt"
  8. freopen(filePath.cString(using: .ascii), "a", stderr)
  9. }
  10. }
Add Comment
Please, Sign In to add comment