Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func print<Target>(_ items: Any..., separator: String = default, terminator: String = default, to output: inout Target) where Target : TextOutputStream
- func debugPrint<Target>(_ items: Any..., separator: String = default, terminator: String = default, to output: inout Target) where Target : TextOutputStream
- func writeIntoFile() {
- if let documentDirectoryPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first {
- let filePath = documentDirectoryPath + "/logfile.txt"
- freopen(filePath.cString(using: .ascii), "a", stderr)
- }
- }
Add Comment
Please, Sign In to add comment