comparison docs/modules/txt/FileIO.txt @ 0:4816e4a8ae95 draft default tip

Uploaded
author deepakjadmin
date Wed, 20 Jan 2016 09:23:18 -0500
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:4816e4a8ae95
1 NAME
2 FileIO
3
4 SYNOPSIS
5 use FileIO::FileIO;
6
7 use FileIO::FileIO qw(:all);
8
9 DESCRIPTION
10 FIleIO class provides following methods:
11
12 new, Close, Open, SetMode
13
14 FleIO class serves as a base class for all classes involved in file IO.
15 It is derived from ObjectProperty base class which provides methods not
16 explicitly defined in Atom or ObjectProperty class using Perl's AUTOLOAD
17 functionality. These methods are generated on-the-fly for a specified
18 object property:
19
20 Set<PropertyName>(<PropertyValue>);
21 $PropertyValue = Get<PropertyName>();
22 Delete<PropertyName>();
23
24 METHODS
25 new
26 $NewFileIO = new FileIO(%NamesAndValues);
27
28 Using specified *FileIO* property names and values hash, new method
29 creates a new object and returns a reference to a newly created
30 FileIO object. By default, the following properties are initialized:
31
32 Name = '';
33 Mode = 'Read';
34 Status = 0;
35 FileHandle = '';
36
37 Close
38 $FileIO->Close();
39
40 Close open file and returns *FileIO*.
41
42 Open
43 $FileIO->Open();
44
45 Opens the file using file *Name* and *Mode* and returns *FileIO*.
46
47 SetMode
48 $FileIO->SetMode($Mode);
49
50 Sets up file *Mode* and returns *FileIO* Default *Mode* value:
51 *Read*. Supported *Mode* values:
52
53 Read, Write, Append, <, >, >>, r, w, a
54
55 SetName
56 $FileIO->SetName($Name);
57
58 Sets up file *Name* and returns *FileIO*.
59
60 AUTHOR
61 Manish Sud <msud@san.rr.com>
62
63 SEE ALSO
64 MoleculeFileIO.pm, MDLMolFileIO.pm, SDFileIO.pm
65
66 COPYRIGHT
67 Copyright (C) 2015 Manish Sud. All rights reserved.
68
69 This file is part of MayaChemTools.
70
71 MayaChemTools is free software; you can redistribute it and/or modify it
72 under the terms of the GNU Lesser General Public License as published by
73 the Free Software Foundation; either version 3 of the License, or (at
74 your option) any later version.
75