Added merge_module function. Added text module (currently having encoding only). Updated the FileSystem File object with readText, writeText methods (removed the FileReader, FileWriter classes).

This commit is contained in:
atanasovg
2014-04-29 11:52:45 +03:00
parent bf9b564bf5
commit 162dbe56c9
14 changed files with 189 additions and 134 deletions

View File

@ -20,8 +20,10 @@ export declare class FileSystemAccess {
rename(path: string, newPath: string, onSuccess?: () => any, onError?: (error: any) => any): void;
getDocumentsFolderPath(): string;
getTempFolderPath(): string;
readText(path: string, onSuccess: (content: string) => any, onError?: (error: any) => any);
writeText(path: string, content: string, onSuccess?: () => any, onError?: (error: any) => any);
readText(path: string, onSuccess: (content: string) => any, onError?: (error: any) => any, encoding?: string);
writeText(path: string, content: string, onSuccess?: () => any, onError?: (error: any) => any, encoding?: string);
getFileExtension(path: string): string;
}