atomically是什么意思,atomically中文翻譯,atomically發(fā)音、用法及例句
?atomically
atomically發(fā)音
英:[?'t?m?kl?] 美:[?'t?m?kl?]
英: 美:
atomically中文意思翻譯
adv. 利用原子能地
atomically常見(jiàn)例句
1 、The magnetic field of an atom is usually dominated by the electrons.───原子的磁場(chǎng)通常由電子決定。
2 、A nucleus is about one thousand billionth the size of an atom.───原子核的體積大約是原子的一千兆分之一。
3 、An atom contains small particles carrying two kinds of electricity.───原子含有帶有兩種電的微粒。
4 、Once an atom is ionized, it remains charged until it meets an electron.───一旦一個(gè)原子被電離,它就保持帶電直到它遇到一個(gè)電子時(shí)為止。
5 、A nucleus is about one billionth the size of an atom.───原子核的體積大約是原子的一萬(wàn)億分之一。
6 、Or I'm gonna take you apart atom by atom.─── 不然我就把你一點(diǎn)點(diǎn)分解了
7 、The atom remaining must be the same in the two cases.───在兩種情況下,保留下來(lái)的應當是同一個(gè)原子。
8 、I wouldn't change a single atom of your being.─── 我不會(huì )要求你改變一根毫毛
9 、Atom: simplest form of an element that retains the properties of that element.───原子:一個(gè)元素的最簡(jiǎn)形式,擁有那個(gè)元素的屬性。
10 、There is not an atom of water.───一滴水都沒(méi)有。
11 、We know that the air is made of atoms and we can't see them and cloth is made of atoms and we can't see them.─── 我們知道空氣是由我們看不到的原子組成 布料是由我們看不到的原子組成
12 、Atom is too small to be seen.───原子小得看不見(jiàn)。
13 、People and planets and stars will become dust, and the dust will become atoms, and the atoms will become...nothing.─── 人 行星和星系將化作煙塵 煙塵將打碎成原子 原子則會(huì )化作 虛無(wú)
14 、The power of the atom can be used to produce electricity.───原子能可以用來(lái)發(fā)電。
15 、When an atom of U235 is split,several neutrons are set free.───一個(gè)鈾235原子分裂時(shí),釋放出幾個(gè)中子。
16 、An orbiting electron in an atom will have a magnetic dipole moment.───一個(gè)原子中旋轉的電子會(huì )有磁偶極距。
17 、An acid having one replaceable hydrogen atom.───一元酸只有一個(gè)可置換氫原子的酸
18 、And you can see that each carbon atom is surrounded by three other carbon atoms, and the bond between those carbon atoms is really, really strong.─── 你會(huì )發(fā)現 每個(gè)碳原子都被其他三個(gè)碳原子所包圍 這些碳原子之間的鍵非常強
19 、He couldn't produce an atom of evidence.───他一點(diǎn)證據也拿不出。
20 、There is not an atom of truth in his allegations.───他的說(shuō)法沒(méi)有絲毫真實(shí)性。
21 、At the centre of an atom is a nucleus, around which electrons revolve .───原子的中央是原子核,電子繞著(zhù)它旋轉。
22 、The Atom whirls alone, the epitome of singleness.───原子獨自旋轉,典型的單一性縮影。
23 、The compound of above of 10 carbon atom calls polysaccharide.───10個(gè)碳原子以上的化合物叫多糖。
24 、There's not an atom of truth in what he said.───他所說(shuō)的沒(méi)有一點(diǎn)是真話(huà)。
25 、As being known to all,the world is made up of small particle called atom.───眾所周知,世界是由叫做原子的小微粒組成的。
26 、Atom energy is large of powerful energy existing!───原子能是現存的最大的能源.
27 、The atom of one element is different from those of all other elements.───一種元素的原子與所有其它元素的原子是不同的。
28 、An arsenic atom can take the place of a germanium atom in the lattice.───一個(gè)砷原子能取代點(diǎn)陣子中的鍺原子.
29 、An atom is the smallest indivisible particle of matter.───原子是最小的不可分的物質(zhì)微粒。
30 、He could not get up an atom of sympathy for her.───他對她激不出一點(diǎn)同情心。
31 、An incident electron can knock an inner-shell electron out of a target atom.───一個(gè)入射電子能把靶子原子的內層電子撞出來(lái)。
32 、Electron in an atom move round the nucleus the way the planet move round the sun.───原子里的電子圍繞著(zhù)原子核轉就像行星圍繞著(zhù)太陽(yáng)轉一樣。
33 、PUPU can split the atom with his bare hands.───噗噗可以徒手劈開(kāi)原子。
34 、There is not an atom of truth is what he said.───他所說(shuō)的沒(méi)有一句是真話(huà)。
35 、The atom of any element is pictured as resembling the solar system.───任何元素的原子都可以想象成與太陽(yáng)系相似。
36 、The atom that contributes no electrons to a covalent bond.───受體沒(méi)有給共價(jià)鍵提供電子的原子。
37 、The particles in an atom are infinitely small.───原子里的粒子極小。
38 、Controls that do not support internal pagination must either have child controls or appear atomically on a single screen.───不支持內部分頁(yè)的控件必定要么包含子控件,要么以原子方式出現在單一頁(yè)中。
39 、The neutrons and protons form the core of the atom.───中子和質(zhì)子構成了原子核。
40 、N8 atom could form H-bond to the acceptor as a free base.───N8原子可能以游離堿形式與受體發(fā)生氫鍵作用.
41 、No atom behaves precisely like a classical harmonic oscillator.───任何一個(gè)原子的性能都不會(huì )同經(jīng)典諧振子完全相同。
42 、Many properties of an atom are determined by the outermost electrons.───一個(gè)原子的許多性質(zhì)都是由其最外層的電子所確定的。
43 、An atom or a radical with a valence of 1.───一價(jià)原子或一價(jià)基。
44 、Being combined with two hydrogen atoms, one oxygen atom may form a molecule of water.───一個(gè)氧原子同兩個(gè)氫原子化合,可以形成一個(gè)水分子。
45 、An atom has two parts, the nucleus and the electrons.───一個(gè)原子分兩部分,一部分叫原子核,一部分叫電子。
46 、An atom normally contains equal numbers of electrons and protons.───原子在正常情況下含有數目相等的電子和質(zhì)子。
47 、A normally occupied lattice site from which an atom or ion is missing.───一個(gè)缺失原子或離子的晶格節點(diǎn)位置。
48 、Small as they are, atom is made up of still smaller unit know as subatomic particle.───原子雖小,但它們是由更小的稱(chēng)為亞原子粒的單位組成的。
49 、Existing or acting outside the nucleus of an atom.───原子核外的出現或行動(dòng)于原子核外的
50 、Atom number eight is called oxygen.───原子序數為8的物質(zhì)叫做氧。
51 、if we put enough uranium atoms close together, the bullets from one atom will eventually strike another atom.─── 如果將足夠多的鈾原子聚集在一起 來(lái)自一個(gè)原子的子彈最終會(huì )擊中另一個(gè)原子
52 、A molecule is a thousand times bigger than an atom of hydrogen.───一個(gè)分子比一個(gè)氫原子大一千倍。
53 、An atom is the smallest indivisible unit of matter.───原子是最小的不可分割的物質(zhì)單位。
54 、Atom: a reference to a character string in an atom table.───原子表中的一個(gè)字符串。
55 、A set of eight valence electrons in an atom or ion, forming a stable configuration.───八重態(tài)在一個(gè)原子或離子中,形成穩定組態(tài)的一組八個(gè)化合價(jià)電子
56 、Each electron in an atom must have a different set of quantum numbers.───一個(gè)原子中,各電子必定有一套各不相同的量子數。
57 、The schroedinger equation for the one-electron atom is exactly soluble.───單電子原子的薛定諤方程是可精確求解的。
58 、Restored to one piece, atom by atom.─── 完好無(wú)損地重組 從一個(gè)個(gè)原子堆積起來(lái)
59 、He has made scientific researches on atom for ton years.───他從事原子科學(xué)研究已十年了。
60 、Having one replaceable atom or radical.───一元的有一個(gè)可置換原子或原子團的
61 、Are there state dependencies between methods that require certain groups of operations to be performed atomically?───在包含需要自動(dòng)執行的一組操作的方法之間是否有狀態(tài)依賴(lài)關(guān)系呢?
62 、An atom composed of antiparticles.───反原子由反粒子構成的原子
63 、My atoms have always loved your atoms.─── 我的原子一直愛(ài)著(zhù)你的原子
64 、Therefore the whole atom is neither positive nor negative.───因此,整個(gè)原子,既不帶正電,也不帶負電。
65 、When an atom shoots out a photon of light, it recoils like a gun.───原子發(fā)出光子時(shí),會(huì )象**一樣地反沖。
66 、This splitting of an atom had not been observed before.───原子的這種分裂在過(guò)去沒(méi)發(fā)現過(guò)。
67 、An atom contains a tiny heavy nucleus.───一個(gè)原子含有一個(gè)微小而重的核。
68 、The number of electron pairs an atom can share with other atoms.───共用電子對數,共價(jià)一個(gè)原子與其他原子共用的電子的對數
69 、Two atoms of hydrogen combine with one atom of oxygen to form a molecule of water.───兩個(gè)氫原子和一個(gè)氧原子結合而成一個(gè)水分子。
70 、An atom or a radical with a valence of1.───一價(jià)原子或一價(jià)基
71 、No matter what substance it may be, it is made up of atom.───不管這是什么物質(zhì),都由原子構成。
72 、We are the children of the atom, my love.─── 我們都是原子之子 親愛(ài)的
73 、Subatomic physics deals with all entities smaller than the atom.───亞原子物理學(xué)研究一切小于原子的客體。
74 、A high-energy electron which penetrates into the metal atom may dislodge one of the inner electrons of that atom.───一個(gè)穿入金屬原子的高能電子可以逐出該金屬原子的一個(gè)內層電子。
75 、Half an atom is an impossibility.───半個(gè)原子是不可能的事。
76 、One proton is almost as heavy as an entire atom of hydrogen.───一個(gè)質(zhì)子幾乎與整個(gè)氫原子的重量相等。
77 、An atom is so small that we cannot see it.───原子這樣小,以至我們看不見(jiàn)它。
78 、Joint Research Center for Atom Technology, JRCAT.───從事原子分子極限操作技術(shù)的研究。
79 、As been known to all,the world is made up of small particle called atom.───眾所周知,世界是由叫做原子的小微粒組成的。
80 、An atom is so small that we can't see it with a microscope.───原子太小,即使用顯微鏡也看不見(jiàn)它。
81 、In any atom, not more than two electrons can occupy any given quantum state.───在任一原子中,不可能有兩個(gè)以上的電子占據任一給定的量子態(tài)。
82 、We now have atomically detailed structures of many of the proteins that promote virulence of human pathogens.───也就是說(shuō),我們可能通過(guò)蛋白質(zhì)的排列次序準確地分析出他 們的結構。
83 、A nucleus and the electrons whirling around it make up an atom.───一個(gè)原子核及圍繞它旋轉的電子組成一個(gè)原子。
84 、One atom of oxygen is linked to the nitrogen atom by a double bond.───一個(gè)氧原子以雙鍵與氮原子相連。
85 、The combining capacity of an atom or a radical determined by the number of electrons that it will lose, add, or share when it reacts with other atoms.───化合價(jià),原子價(jià)原子或原子團與其它原子反映時(shí)由所失、增加成共享的電子數目決定的化合能力
86 、Atomic use leads to atomic retaliation and that retaliation leads to more retaliation and we end up at reciprocal annihilation.─── 使用原子武器導致別人用原子武器來(lái)報復 而這種報復又導致更多的報復 我們終將彼此毀滅
87 、He applied the concept of quantization of energy to the hydrogen atom.───他把能量量子化的概念用于氫原子。
88 、There is a stable ground state of the atom.───原子有一個(gè)穩定的基態(tài)。
89 、An oxide with each molecule containing one oxygen atom.───一氧化物每一分子含有一個(gè)氧原子的氧化物
90 、The atom has a nucleus at its core.───在原子的中心有一個(gè)原于核。
ios 怎么將數據庫存儲到當前工程下
在iOS開(kāi)發(fā)過(guò)程中,不管是做什么應用,都會(huì )碰到數據保存的問(wèn)題。將數據保存到本地,能夠讓程序的運行更加流暢,不會(huì )出現讓人厭惡的菊花形狀,使得用戶(hù)體驗更好。下面介紹一下數據保存的方式:
1.NSKeyedArchiver:采用歸檔的形式來(lái)保存數據,該數據對象需要遵守NSCoding協(xié)議,并且該對象對應的類(lèi)必須提供encodeWithCoder:和initWithCoder:方法。前一個(gè)方法告訴系統怎么對對象進(jìn)行編碼,而后一個(gè)方法則是告訴系統怎么對對象進(jìn)行**。例如對Possession對象歸檔保存。
定義Possession:
@interface Possession:NSObject
NSString *name;//待歸檔類(lèi)型
}
@implementation Possession
-(void)encodeWithCoder:(NSCoder *)aCoder{
[aCoder encodeObject:name forKey:@"name"];
}
-(void)initWithCoder:(NSCoder *)aDecoder{
name=[[aDeCoder decodeObjectforKey:@"name"] retain];
}
歸檔操作:
如果對Possession對象allPossession歸檔保存,只需要NSCoder子類(lèi)NSKeyedArchiver的方法archiveRootObject:toFile: 即可。
NSString *path = [self possessionArchivePath];
[NSKeyedArchiver archiveRootObject:allPossessions toFile: path ]
解壓操作:
同樣調用NSCoder子類(lèi)NSKeyedArchiver的方法unarchiveRootObject:toFile: 即可
allPossessions = [[NSKeyedUnarchiver unarchiveObjectWithFile:path] retain];
缺點(diǎn):歸檔的形式來(lái)保存數據,只能一次性歸檔保存以及一次性解壓。所以只能針對小量數據,而且對數據操作比較笨拙,即如果想改動(dòng)數據的某一小部分,還是需要解壓整個(gè)數據或者歸檔整個(gè)數據。
2.NSUserDefaults:用來(lái)保存應用程序設置和屬性、用戶(hù)保存的數據。用戶(hù)再次打開(kāi)程序或開(kāi)機后這些數據仍然存在。NSUserDefaults可以存儲的數據類(lèi)型包括:NSData、NSString、NSNumber、NSDate、NSArray、NSDictionary。如果要存儲其他類(lèi)型,則需要轉換為前面的類(lèi)型,才能用NSUserDefaults存儲。具體實(shí)現為:
保存數據:
NSUserDefaults *defaults =[NSUserDefaults standardUserDefaults];
NSString *name =@”default string“;
[defaults setObject:firstName forKey:@"name"];
//獲得UIImage實(shí)例
UIImage *image=[[UIImage alloc]initWithContentsOfFile:@"photo.jpg"];
NSData *imageData = UIImageJPEGRepresentation(image, 100);//UIImage對象轉換成NSData
[defaults synchronize];//用synchronize方法把數據持久化到standardUserDefaults數據庫
讀取數據:
NSUserDefaults *defaults =[NSUserDefaults standardUserDefaults];
NSString *name = [defaults objectForKey:@"name"];//根據鍵值取出name
NSData *imageData = [defaults dataForKey:@"image"];
UIImage *Image = [UIImage imageWithData:imageData];//NSData轉換為UIImage
3. Write寫(xiě)入方式:永久保存在磁盤(pán)中。具體方法為:
第一步:獲得文件即將保存的路徑:
NSArray *documentPaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES);//使用C函數NSSearchPathForDirectoriesInDomains來(lái)獲得沙盒中目錄的全路徑。該函數有三個(gè)參數,目錄類(lèi)型、he domain mask、布爾值。其中布爾值表示是否需要通過(guò)~擴展路徑。而且第一個(gè)參數是不變的,即為NSSearchPathDirectory 。在IOS中后兩個(gè)參數也是不變的,即為:NSUserDomainMask 和 YES。
NSString *ourDocumentPath =[documentPaths objectAtIndex:0];
還有一種方法是使用NSHomeDirectory函數獲得sandbox的路徑。具體的用法為:
NSString *sandboxPath = NSHomeDirectory();
// Once you have the full sandbox path, you can create a path from it,但是不能在sandbox的本文件層上寫(xiě)文件也不能創(chuàng )建目錄,而應該是此基礎上創(chuàng )建一個(gè)新的可寫(xiě)的目錄,例如Documents,Library或者temp。
NSString *documentPath = [sandboxPath
stringByAppendingPathComponent:@"Documents"];//將Documents添加到sandbox路徑上,具體原因前面分析了!
這兩者的區別就是:使用NSSearchPathForDirectoriesInDomains比在NSHomeDirectory后面添加Document更加安全。因為該文件目錄可能在未來(lái)發(fā)送的系統上發(fā)生改變。
第二步:生成在該路徑下的文件:
NSString *FileName=[documentDirectory stringByAppendingPathComponent:fileName];//fileName就是保存文件的文件名
第三步:往文件中寫(xiě)入數據:
[data writeToFile:FileName atomically:YES];//將NSData類(lèi)型對象data寫(xiě)入文件,文件名為FileName
最后:從文件中讀出數據:
NSData data=[NSData dataWithContentsOfFile:FileName options:0 error:NULL];//從FileName中讀取出數據
4. SQLite:采用SQLite數據庫來(lái)存儲數據。SQLite作為一中小型數據庫,應用ios中,跟前三種保存方式相比,相對比較復雜一些。還是一步步來(lái)吧!
第一步:需要添加SQLite相關(guān)的庫以及頭文件:在項目文件的Build Phases下,找到Link Binary Library(ies),添加libsqlite3.0.dylib(libsqlite3.dylib與前者的區別暫時(shí)不知,兩者應該差不多);在項目文件中頭文件或者源文件中添加頭文件#import "/usr/include/sqlite3.h"
第二步:開(kāi)始使用SQLite:
NSArray *documentsPaths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask , YES);
NSString *databaseFilePath=[[documentsPaths objectAtIndex:0] stringByAppendingPathComponent:@"mydb"];
//上面兩句已經(jīng)比較熟悉了吧!
//打開(kāi)數據庫
if (sqlite3_open([databaseFilePath UTF8String], &database)==SQLITE_OK) {
NSLog(@"sqlite dadabase is opened.");
}
else{ return;}//打開(kāi)不成功就返回
在打開(kāi)了數據庫的前提下,如果數據庫沒(méi)有表,那就開(kāi)始建表了哦!
char *error;
const char *createSql="create table(id integer primary key autoincrement, name text)";
if (sqlite3_exec(database, createSql, NULL, NULL, &error)==SQLITE_OK) {
NSLog(@"create table is ok.");
}
else
{
NSLog(@"error: %s",error);
sqlite3_free(error);//每次使用完畢清空error字符串,提供給下一次使用
}
建表完成之后,就開(kāi)始**入記錄:
const char *insertSql="insert into a person (name) values(‘gg’)";
if (sqlite3_exec(database, insertSql, NULL, NULL, &error)==SQLITE_OK) {
NSLog(@"insert operation is ok.");
}
else
{
NSLog(@"error: %s",error);
sqlite3_free(error);//每次使用完畢清空error字符串,提供給下一次使用
}
下一步,查詢(xún)記錄:
const char *selectSql="select id,name from a person";
sqlite3_stmt *statement;
if (sqlite3_prepare_v2(database,selectSql, -1, &statement, nil)==SQLITE_OK) {
NSLog(@"select operation is ok.");
}
else
{
NSLog(@"error: %s",error);
sqlite3_free(error);
}
while(sqlite3_step(statement)==SQLITE_ROW) {
int _id=sqlite3_column_int(statement, 0);
NSString *name=(char*)sqlite3_column_text(statement, 1);
NSLog(@"row>>id %i, name %s",_id,name);
}
sqlite3_finalize(statement);
最后,關(guān)閉數據庫:
sqlite3_close(database);
注意:寫(xiě)入數據庫,字符串可以采用char方式,而從數據庫中取出char類(lèi)型,當char類(lèi)型有表示中文字符時(shí),會(huì )出現亂碼。這是因為數據庫默認使用ascII編碼方式。所以要想正確從數據庫中取出中文,需要用NSString來(lái)接收從數據庫取出的字符串。
如何查找nstemporarydirectory路徑
NSArray *array = [[NSBundle mainBundle] pathsForResourcesOfType:@"jpg" inDirectory:@"image"];
NSLog(@"array:%@",array);
首先需要在mac上新建一個(gè)文件夾叫image, 放一些圖片進(jìn)去,然后把整個(gè)文件夾拖到項目中,在彈出的對話(huà)框中選擇:Create folder references for any added folders ,這個(gè)會(huì )創(chuàng )建一個(gè)真實(shí)的目錄,否則找到不這個(gè)目錄下的文件
家目錄下共有四個(gè)子目錄:
Documents 目錄:您應該將所有的應用程序數據文件寫(xiě)入到這個(gè)目錄下。這個(gè)目錄用于存儲用戶(hù)數據或其它應該定期備份的信息。
AppName.app 目錄:這是應用程序的程序包目錄,包含應用程序的本身。由于應用程序必須經(jīng)過(guò)簽名,所以您在運行時(shí)不能對這個(gè)目錄中的內容進(jìn)行修改,否則可能會(huì )使應用程序無(wú)法啟動(dòng)。
Library 目錄:這個(gè)目錄下有兩個(gè)子目錄:Caches 和 Preferences
Preferences 目錄包含應用程序的偏好設置文件。您不應該直接創(chuàng )建偏好設置文件,而是應該使用NSUserDefaults類(lèi)來(lái)取得和設置應用程序的偏好
Caches 目錄用于存放應用程序專(zhuān)用的支持文件,保存應用程序再次啟動(dòng)過(guò)程中需要的信息。
tmp 目錄:這個(gè)目錄用于存放臨時(shí)文件,保存應用程序再次啟動(dòng)過(guò)程中不需要的信息。
獲取這些目錄路徑的方法:
1,獲取家目錄路徑的函數:
NSString *homeDir = NSHomeDirectory();
2,獲取Documents目錄路徑的方法:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docDir = [paths objectAtIndex:0];
3,獲取Caches目錄路徑的方法:
NSArray*paths=NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cachesDir = [paths objectAtIndex:0];
4,獲取tmp目錄路徑的方法:
NSString *tmpDir = NSTemporaryDirectory();
5,獲取應用程序程序包中資源文件路徑的方法:
例如獲取程序包中一個(gè)圖片資源(apple.png)路徑的方法:
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@”apple” ofType:@”png”];
UIImage *appleImage = [[UIImage alloc] initWithContentsOfFile:imagePath];
代碼中的mainBundle類(lèi)方法用于返回一個(gè)代表應用程序包的對象。
文件IO
1,將數據寫(xiě)到Documents目錄:
- (BOOL)writeApplicationData:(NSData *)data toFile:(NSString *)fileName {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docDir = [paths objectAtIndex:0]; if (!docDir) { NSLog(@”Documents directory not found!”); return NO; }
NSString *filePath = [docDir stringByAppendingPathComponent:fileName];
return [data writeToFile:filePath atomically:YES];}
2,從Documents目錄讀取數據:
- (NSData *)applicationDataFromFile:(NSString *)fileName {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *docDir = [paths objectAtIndex:0];
NSString *filePath = [docDir stringByAppendingPathComponent:fileName];
NSData *data = [[[NSData alloc] initWithContentsOfFile:filePath] autorelease]; return data;}
NSSearchPathForDirectoriesInDomains這個(gè)主要就是返回一個(gè)絕對路徑用來(lái)存放我們需要儲存的文件。
- (NSString *)dataFilePath {
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
return [documentsDirectory stringByAppendingPathComponent:@"shoppingCar.plist"];
}
NSFileManager* fm=[NSFileManager defaultManager];
if(![fm fileExistsAtPath:[self dataFilePath]]){
//下面是對該文件進(jìn)行制定路徑的保存
[fm createDirectoryAtPath:[self dataFilePath] withIntermediateDirectories:YES attributes:nil error:nil];
//取得一個(gè)目錄下得所有文件名
NSArray *files = [fm subpathsAtPath: [self dataFilePath] ];
//讀取某個(gè)文件
NSData *data = [fm contentsAtPath:[self dataFilePath]];
//或者
NSData *data = [NSData dataWithContentOfPath:[self dataFilePath]];
}
版權聲明: 本站僅提供信息存儲空間服務(wù),旨在傳遞更多信息,不擁有所有權,不承擔相關(guān)法律責任,不代表本網(wǎng)贊同其觀(guān)點(diǎn)和對其真實(shí)性負責。如因作品內容、版權和其它問(wèn)題需要同本網(wǎng)聯(lián)系的,請發(fā)送郵件至 舉報,一經(jīng)查實(shí),本站將立刻刪除。