import Foundation Foundation int main int argc const char argv autorel

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[])
{
@autoreleasepool {
NSMutableArray *stocks = [[NSMutableArray alloc] init];
NSMutableDictionary *stock;
stock = [NSMutableDictionary dictionary];
[stock setObject:[NSData dataWithContentsOfFile:@"/Users/Alex/Desktop/stockz/lol.txt"]
forKey:@"Пишу хз что" ];
[stocks addObject:stock];
[stocks writeToFile:@"/Users/Alex/Desktop/stockz/fu.plist"
atomically:YES];
}
return 0;
}