comparison mde/file/mergetag/Reader.d @ 114:b16a534f5302

Changes for tango r4201. Added override keyword in a lot of places.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 19 Dec 2008 15:15:06 +0000
parents 1655693702fc
children 7ababdf97748
comparison
equal deleted inserted replaced
113:9824bee909fd 114:b16a534f5302
213 if (ds !is null) _dataset = ds; 213 if (ds !is null) _dataset = ds;
214 else _dataset = new DataSet(); 214 else _dataset = new DataSet();
215 215
216 // Open & read the file 216 // Open & read the file
217 try { // Supports unicode files with a BOM; defaults to UTF8 when there isn't a BOM: 217 try { // Supports unicode files with a BOM; defaults to UTF8 when there isn't a BOM:
218 scope file = new UnicodeFile!(char) (path, Encoding.Unknown); 218 scope file = new UnicodeFile!(char) (path.toString, Encoding.Unknown);
219 fbuf = cast(char[]) file.read(); 219 fbuf = cast(char[]) file.read();
220 } catch (Exception e) { 220 } catch (Exception e) {
221 throwMTErr ("Error reading file: " ~ e.msg, new MTFileIOException); 221 throwMTErr ("Error reading file: " ~ e.msg, new MTFileIOException);
222 } 222 }
223 // Remember the file name so that we can report errors (somewhat) informatively: 223 // Remember the file name so that we can report errors (somewhat) informatively: