Samond Classes Library 1.2.0-RELEASE build 166
List of all members
SCTextFile Class Reference

Text file class. More...

#import <SCTextFile.h>

Inheritance diagram for SCTextFile:
SCText SCStrings SCObject <SCCoding> <SCDictionaring> <SCStreaming> <SCCollectioning>

Instance Properties

NSString * path
 

Creating Text Files

(SCTextFile *) + textFileWithCoder:
 
(SCTextFile *) + textFileWithContentsOfSerializedFile:
 
(SCTextFile *) + textFileWithDataDictionary:
 
(SCTextFile *) + textFileWithDataDictionaryFromFile:
 
(SCTextFile *) + textFileWithStream:
 
(SCTextFile *) + textFileWithFileStream:
 
(SCTextFile *) + textFileWithName:
 
(SCTextFile *) + textFileWithString:
 
(SCTextFile *) + textFileWithStrings:
 
(SCTextFile *) + textFileWithCollection:
 
(SCTextFile *) + textFileWithText:
 
(SCTextFile *) + textFileWithTextFile:
 
(SCTextFile *) + textFileWithName:stream:
 
(SCTextFile *) + textFileFromStream:
 
(SCTextFile *) + textFileWithName:path:
 
(SCTextFile *) + textFileWithPath:
 
(SCTextFile *) + textFile
 

Initializing Text Files

(id) - initWithTextFile:
 
(id) - initWithName:stream:
 
(id) - initFromStream:
 
(id) - initWithName:path:
 
(id) - initWithPath:
 

Copying Text Files

(void) - setTextFile:
 

Converting Text Files

SCTexttext
 

Reading and Writing Text Files

(BOOL) - read
 
(BOOL) - readFromStream:
 
(BOOL) - readWithPath:
 
(BOOL) - write
 
(BOOL) - writeTextToStream:
 
(BOOL) - writeWithPath:
 
(BOOL) - reset
 
(BOOL) - appendToFileWithPath:
 

Reading and Writing Texts

(BOOL) - addTextFromStream:
 
(BOOL) - addTextWithPath:
 
(BOOL) - insertTextFromStream:atIndex:
 
(BOOL) - insertTextWithPath:atIndex:
 
(BOOL) - replaceTextInRange:withTextFromStream:
 
(BOOL) - replaceTextInRange:withTextWithPath:
 
(BOOL) - replaceText:withTextFromStream:
 
(BOOL) - replaceText:withTextWithPath:
 
(BOOL) - writeTextInRange:toStream:
 
(BOOL) - writeTextInRange:withPath:
 
(BOOL) - appendTextInRange:toFileWithPath:
 
(SCText *) - cutTextInRange:toStream:
 
(SCText *) - cutTextInRange:withPath:
 
(SCText *) - cutAndAppendTextInRange:toFileWithPath:
 
(BOOL) - writeTextWithSubstring:toStream:
 
(BOOL) - writeTextWithSubstring:withPath:
 
(BOOL) - writeTextWithoutSubstring:toStream:
 
(BOOL) - writeTextWithoutSubstring:withPath:
 

Additional Inherited Members

- Instance Methods inherited from SCText
(id) - initWithText:
 
(void) - setText:
 
(BOOL) - isEqualToText:
 
(void) - addText:
 
(void) - insertText:atIndex:
 
(void) - removeAllText
 
(void) - removeTextInRange:
 
(void) - removeTextWithSubstring:
 
(void) - removeTextWithoutSubstring:
 
(void) - removeSubstring:
 
(SCText *) - cutTextInRange:
 
(void) - removeText:
 
(void) - replaceTextInRange:withText:
 
(void) - replaceTextInRange:withCollection:
 
(void) - replaceText:withText:
 
(void) - exchangeTextInRange:withTextInRange:
 
(void) - duplicateTextInRange:
 
(void) - duplicateStringsInRange:
 
(void) - copyTextInRange:toIndex:
 
(void) - moveTextInRange:toIndex:
 
(void) - forwardMoveTextInRange:steps:
 
(void) - forwardMoveTextInRange:
 
(void) - backwardMoveTextInRange:steps:
 
(void) - backwardMoveTextInRange:
 
(void) - moveToFirstPositionTextInRange:
 
(void) - moveToLastPositionTextInRange:
 
(SCText *) - textInRange:
 
(BOOL) - containsText:
 
(NSRange) - rangeOfText:
 
(NSRange) - rangeOfCollection:
 
(SCIndex- indexOfText:
 
(SCIndex- indexOfCollection:
 
(SCUInteger- countOfText:
 
(SCUInteger- countOfCollection:
 
(SCArray *) - indexesOfText:
 
(SCArray *) - indexesOfCollection:
 
(SCText *) - textWithSubstring:
 
(SCText *) - textWithoutSubstring:
 
(SCTextIndex *) - textIndexOfSubstring:
 
(SCArray *) - textIndexesOfSubstring:
 
- Instance Methods inherited from SCStrings
(id) - initWithName:
 
(id) - initWithString:
 
(id) - initWithCollection:
 
(id) - initWithStrings:
 
(id) - init
 
(void) - setStrings:
 
(void) - setCollection:
 
(void) - setString:
 
(BOOL) - isEqualToStrings:
 
(BOOL) - isEqualToCollection:
 
(BOOL) - isEqualTo:
 
(BOOL) - isEqual:
 
(void) - enumerateWithDelegate:
 
(void) - enumerate
 
(void) - reverseEnumerateWithDelegate:
 
(void) - reverseEnumerate
 
(void) - sortAscendingWithSorter:
 
(void) - sortDescendingWithSorter:
 
(void) - sortWithSorter:
 
(void) - sortAscending
 
(void) - sortDescending
 
(void) - sort
 
(SCStrings *) - ascendingSortedStringsWithSorter:
 
(SCStrings *) - descendingSortedStringsWithSorter:
 
(SCStrings *) - sortedStringsWithSorter:
 
(SCStrings *) - ascendingSortedStrings
 
(SCStrings *) - descendingSortedStrings
 
(void) - addString:
 
(void) - addCollection:
 
(void) - addStrings:
 
(void) - addLine
 
(void) - insertString:atIndex:
 
(void) - insertStrings:atIndex:
 
(void) - insertCollection:atIndex:
 
(void) - insertStrings:atIndexes:
 
(void) - insertCollection:atIndexes:
 
(void) - insertLineAtIndex:
 
(void) - removeAllStrings
 
(void) - removeFirstString
 
(void) - removeLastString
 
(void) - removeStringAtIndex:
 
(void) - removeStringsAtIndexes:
 
(void) - removeString:
 
(void) - removeStrings:
 
(void) - removeCollection:
 
(void) - removeStringsWithSubstring:
 
(void) - removeStringsNotAtIndexes:
 
(void) - removeStringsNotEqualTo:
 
(void) - removeStringsNotInStrings:
 
(void) - removeStringsNotInCollection:
 
(void) - removeStringsWithoutSubstring:
 
(void) - removeDuplicatedStrings
 
(void) - replaceStringAtIndex:withString:
 
(void) - replaceStringsAtIndexes:withStrings:
 
(void) - replaceStringsAtIndexes:withCollection:
 
(void) - replaceString:withString:
 
(void) - exchangeStringAtIndex:withStringAtIndex:
 
(void) - duplicateStringAtIndex:
 
(void) - duplicateAllStrings
 
(void) - duplicate
 
(void) - copyStringAtIndex:toIndex:
 
(void) - moveStringAtIndex:toIndex:
 
(void) - forwardMoveStringAtIndex:steps:
 
(void) - forwardMoveStringAtIndex:
 
(void) - backwardMoveStringAtIndex:steps:
 
(void) - backwardMoveStringAtIndex:
 
(void) - moveToFirstPositionStringAtIndex:
 
(void) - moveToLastPositionStringAtIndex:
 
(void) - reverse
 
(NSString *) - stringAtIndex:
 
(SCStrings *) - stringsAtIndexes:
 
(BOOL) - containsString:
 
(BOOL) - containsStrings:
 
(BOOL) - containsCollection:
 
(BOOL) - containsAnyString:
 
(BOOL) - containsAnyStringFromCollection:
 
(BOOL) - containsSubstring:
 
(BOOL) - containsSubstrings:
 
(BOOL) - containsSubstringsFromCollection:
 
(BOOL) - containsAnySubstring:
 
(BOOL) - containsAnySubstringFromCollection:
 
(BOOL) - containsDuplicatedStrings
 
(SCIndex- indexOfString:
 
(SCIndex- indexOfSubstring:
 
(SCStrings *) - stringsWithSubstring:
 
(SCStrings *) - stringsWithSubstrings:
 
(SCStrings *) - stringsWithSubstringsFromCollection:
 
(SCStrings *) - stringsWithAnySubstring:
 
(SCStrings *) - stringsWithAnySubstringFromCollection:
 
(SCStrings *) - stringsWithoutSubstring:
 
(SCStrings *) - stringsWithoutSubstrings:
 
(SCStrings *) - stringsWithoutSubstringsFromCollection:
 
(SCULong- countOfString:
 
(SCULong- countOfSubstring:
 
(SCULong- countOfStringsWithSubstring:
 
- Instance Methods inherited from SCObject
(id) - initWithContentsOfSerializedFile:
 
(BOOL) - writeContentsToSerializedFile:
 
(id) - initWithDataDictionaryFromFile:
 
(void) - writeToDataDictionaryFile:atomically:
 
(void) - writeToDataDictionaryFile:
 
(NSDictionary *) - dataDictionary
 
(id) - initWithFileStream:
 
(void) - writeToFileStream:
 
(void) - appendToFileStream:
 
- Instance Methods inherited from <SCCoding>
- Instance Methods inherited from <SCDictionaring>
- Instance Methods inherited from <SCCollectioning>
- Class Methods inherited from SCText
(SCText *) + textWithCoder:
 
(SCText *) + textWithContentsOfSerializedFile:
 
(SCText *) + textWithDataDictionary:
 
(SCText *) + textWithDataDictionaryFromFile:
 
(SCText *) + textWithStream:
 
(SCText *) + textWithFileStream:
 
(SCText *) + textWithName:
 
(SCText *) + textWithString:
 
(SCText *) + textWithStrings:
 
(SCText *) + textWithCollection:
 
(SCText *) + textWithText:
 
- Class Methods inherited from SCStrings
(SCStrings *) + stringsWithCoder:
 
(SCStrings *) + stringsWithContentsOfSerializedFile:
 
(SCStrings *) + stringsWithDataDictionary:
 
(SCStrings *) + stringsWithDataDictionaryFromFile:
 
(SCStrings *) + stringsWithStream:
 
(SCStrings *) + stringsWithFileStream:
 
(SCStrings *) + stringsWithName:
 
(SCStrings *) + stringsWithString:
 
(SCStrings *) + stringsWithCollection:
 
(SCStrings *) + stringsWithStrings:
 
- Properties inherited from SCText
SCStringsstrings
 
SCUniqueStringsuniqueStrings
 
- Properties inherited from SCStrings
NSString * name
 
BOOL readOnly
 
BOOL caseInsensitive
 
id< SCTextDelegatedelegate
 
SCULong count
 
BOOL empty
 
NSString * description
 
BOOL modified
 
NSEnumerator * stringEnumerator
 
NSEnumerator * reverseStringEnumerator
 
SCArrayarray
 
NSArray * foundationArray
 
SCStringssortedStrings
 
SCStringsreversedStrings
 
NSString * firstString
 
NSString * lastString
 
SCIndex indexOfLastString
 

Detailed Description

Text file class.

Since
version 1.1.4

Class SCTextFile extends the parent class SCText by adding the methods for reading and writing disk text files.
Class instances can thrown the following exceptions:

Method Documentation

- (BOOL) addTextFromStream: (SCStream *)  stream

Adds into the receiving text file the text from the specified input stream.

Parameters
stream- input stream
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) addTextWithPath: (NSString *)  path

Adds into the receiving text file the text from the file with the specified path.

Parameters
path- source file path
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) appendTextInRange: (NSRange)  range
toFileWithPath: (NSString *)  path 

Appends the text in the specified range to the file with the specified path.

Parameters
range- appended text range
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) appendToFileWithPath: (NSString *)  path

Appends the currect content of the receiving text file into the file with the specified path.

Parameters
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (SCText *) cutAndAppendTextInRange: (NSRange)  range
toFileWithPath: (NSString *)  path 

Cuts the text in the specified range and appends it to the file with the specified path.

Parameters
range- cut text range
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (SCText *) cutTextInRange: (NSRange)  range
toStream: (SCStream *)  stream 

Cuts the text in the specified range and writes it to the specified stream.

Parameters
range- cut text range
stream- output stream
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (SCText *) cutTextInRange: (NSRange)  range
withPath: (NSString *)  path 

Cuts the text in the specified range and writes it to the file with the specified path.

Parameters
range- cut text range
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (id) initFromStream: (SCStream *)  stream

Initializes a text file using the specified input stream.

Parameters
stream- open input stream
Returns
A newly initialized text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (id) initWithName: (NSString *)  name
path: (NSString *)  path 

Initializes a text file using the specified text name and file path.

Parameters
name- text name
path- source file path
Returns
A newly initialized text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (id) initWithName: (NSString *)  name
stream: (SCStream *)  stream 

Initializes a text file using the specified text name and input stream.

Parameters
name- text name
stream- open input stream
Returns
A newly initialized text file
Exceptions
SCTextException- text error detected
SCStreamException- stream Метод инициализирует текстовый файл с указанным именем и строками из указанного потока.
- (id) initWithPath: (NSString *)  path

Initializes a text file using the specified file path.

Parameters
path- source file path
Returns
A newly initialized text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (id) initWithTextFile: (SCTextFile *)  textFile

Initializes a text file using the specified existing text file.

Parameters
textFile- existing source text file
Returns
A newly initialized text file
Exceptions
SCTextException- text error detected
- (BOOL) insertTextFromStream: (SCStream *)  stream
atIndex: (SCIndex index 

Reads the text from the specified input stream and inserts it into the receiving text file at a given index.

Parameters
stream- input stream
index- destination index
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) insertTextWithPath: (NSString *)  path
atIndex: (SCIndex index 

Reads the text from the file with the specified path and inserts it into the receiving text file at a given index.

Parameters
path- source file path
index- destination index
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) read

Removes the currect content of the receiving text file and reads the text from the text file with the default path.

Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) readFromStream: (SCStream *)  stream

Removes the current content of the receiving text file and reads the text from the specified stream.

Parameters
stream- source input stream
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) readWithPath: (NSString *)  path

Removes the currect content of the receiving text file and reads the text from the file with the specified file.

Parameters
path- source file path
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) replaceText: (SCStrings *)  text
withTextFromStream: (SCStream *)  stream 

Replaces the all occurrences of the specified text with the text from the specified stream.

Parameters
text- replaced text
stream- input stream
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) replaceText: (SCStrings *)  text
withTextWithPath: (NSString *)  path 

Replaces the all occurrences of the specified text with the text from the file with the specified path.

Parameters
text- replaced text
path- source file path
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) replaceTextInRange: (NSRange)  range
withTextFromStream: (SCStream *)  stream 

Replaces the text in the specified range with text loaded from the specified stream.

Parameters
range- replaced text range
stream- input stream
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) replaceTextInRange: (NSRange)  range
withTextWithPath: (NSString *)  path 

Replaces the text in the specified range with text loaded from the file with the specified path.

Parameters
range- replaced text range
path- source file path
Returns
YES if the reading operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) reset

Discards all receiving text changes and reloads content from the file with the default path.

Returns
YES if the operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (void) setTextFile: (SCTextFile *)  textFile

Replaces the content and settings of the receiving text file by the content and settings of the specified text file.

Parameters
textFile- existing source text file
Exceptions
SCTextException- text error detected
+ (SCTextFile *) textFile

Returns an unnamed empty text file created by using the default settings.

Returns
A created text file
+ (SCTextFile *) textFileFromStream: (SCStream *)  stream

Returns a text file created by using the specified input stream.

Parameters
stream- open input stream
Returns
A created text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCTextFile *) textFileWithCoder: (NSCoder *)  coder

Returns a text file created by using the specified coder.

Parameters
coder- source coder
Returns
A created text file
+ (SCTextFile *) textFileWithCollection: (id)  collection

Returns a text file created by using the strings from the specified existing collection of any supported type.

Parameters
collection- collection with the source strings
Returns
A created text file
Exceptions
SCTextException- text error detected
SCCollectionException- collection error detected
+ (SCTextFile *) textFileWithContentsOfSerializedFile: (NSString *)  path

Returns a text file created by using the content of the serialized file with the specified path.

Parameters
path- source serialized file path
Returns
A created text file
+ (SCTextFile *) textFileWithDataDictionary: (NSDictionary *)  dictionary

Returns a text file created by using the specified data dictionary.

Parameters
dictionary- source dictionary
Returns
A created text file
+ (SCTextFile *) textFileWithDataDictionaryFromFile: (NSString *)  path

Returns a text file created by using the data dictionary from the specified file.

Parameters
path- source data dictionary file path
Returns
A created text file
+ (SCTextFile *) textFileWithFileStream: (NSString *)  path

Returns a text file created by using the data from the file stream with the specified path.

Parameters
path- stream file path
Returns
A created text file
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCTextFile *) textFileWithName: (NSString *)  name

Returns a text file created by using the specified text name.

Parameters
name- text name
Returns
A created text file
+ (SCTextFile *) textFileWithName: (NSString *)  name
path: (NSString *)  path 

Returns a text file created by using the specified text name and file path.

Parameters
name- text name
path- source file path
Returns
A created text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCTextFile *) textFileWithName: (NSString *)  name
stream: (SCStream *)  stream 

Returns a text file created by using the specified text name and input stream.

Parameters
name- text name
stream- open input stream
Returns
A created text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCTextFile *) textFileWithPath: (NSString *)  path

Returns a text file created by using the specified file path.

Parameters
path- source file path
Returns
A created text file
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCTextFile *) textFileWithStream: (SCStream *)  stream

Returns a text file created by using the data from the specified stream.

Parameters
stream- stream for reading class instance
Returns
A created text file
Exceptions
SCStreamException- stream error detected
SCSystemException- system error detected
+ (SCTextFile *) textFileWithString: (NSString *)  string

Returns a text file created by using the specified existing string.

Parameters
string- existing source string
Returns
A created text file
Exceptions
SCTextException- text error detected
+ (SCTextFile *) textFileWithStrings: (SCStrings *)  strings

Returns a text file created by using the specified existing strings list.

Parameters
strings- existing source strings list
Returns
A created text file
Exceptions
SCTextException- text error detected
+ (SCTextFile *) textFileWithText: (SCText *)  text

Returns a text file created by using the specified existing text.

Parameters
text- existing source test
Returns
A created text file
Exceptions
SCTextException- text error detected
+ (SCTextFile *) textFileWithTextFile: (SCTextFile *)  textFile

Returns a text file created by using the specified existing text file.

Parameters
textFile- existing source text file
Returns
A created text file
Exceptions
SCTextException- text error detected
- (BOOL) write

Writes the content of the receiving text file into the file with the default path.

Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextInRange: (NSRange)  range
toStream: (SCStream *)  stream 

Writes the text in the specified range to the specified stream.

Parameters
range- writed text range
stream- output stream
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextInRange: (NSRange)  range
withPath: (NSString *)  path 

Writes the text in the specified range to the file with the specified path.

Parameters
range- writed text range
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextToStream: (SCStream *)  stream

Writes the content of the receiving text file into the specified output stream.

Parameters
stream- output stream
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextWithoutSubstring: (NSString *)  substring
toStream: (SCStream *)  stream 

Writes into the specified stream strings from the receiving text file that does not contain a given substring.

Parameters
substring- required substring
stream- output stream
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextWithoutSubstring: (NSString *)  substring
withPath: (NSString *)  path 

Writes into the file with the specified path the strings from the receiving text file that does not contain a given substring.

Parameters
substring- required substring
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextWithSubstring: (NSString *)  substring
toStream: (SCStream *)  stream 

Writes into the specified stream strings from the receiving text file that contain a given substring.

Parameters
substring- required substring
stream- output stream
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeTextWithSubstring: (NSString *)  substring
withPath: (NSString *)  path 

Writes into the file with the specified path strings from the receiving text file that contain a given substring.

Parameters
substring- required substring
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected
- (BOOL) writeWithPath: (NSString *)  path

Writes the content of the receiving text file into the file with the specified path.

Parameters
path- destination file path
Returns
YES if the writing operation is successfully, otherwise NO
Exceptions
SCTextException- text error detected
SCStreamException- stream error detected
SCSystemException- system error detected

Property Documentation

- (NSString *) path
readnonatomicretain

Contains the path to the text file.

- (SCText *) text
readnonatomicretain

Returns the text with the copy of all receiving text file strings.


The documentation for this class was generated from the following files: