comparison examples/addressbook/AddressBook.d @ 110:cfd5fa2ce475

Fix: be prepared for deprecated tango.io.File ctor.
author Frank Benoit <benoit@tionex.de>
date Sun, 06 Jul 2008 18:53:29 +0200
parents 9c2803aea121
children eb84f9418bbf
comparison
equal deleted inserted replaced
109:be3a48f1d596 110:cfd5fa2ce475
315 Cursor waitCursor = new Cursor(shell.getDisplay(), DWT.CURSOR_WAIT); 315 Cursor waitCursor = new Cursor(shell.getDisplay(), DWT.CURSOR_WAIT);
316 shell.setCursor(waitCursor); 316 shell.setCursor(waitCursor);
317 317
318 char[][] data; 318 char[][] data;
319 try { 319 try {
320 scope ioFile = new File (file); 320 scope ioFile = new File (file.toString);
321 data = TextUtil.splitLines (cast(char[]) ioFile.read); 321 data = TextUtil.splitLines (cast(char[]) ioFile.read);
322 } catch (IOException e ) { 322 } catch (IOException e ) {
323 displayError(resAddressBook.getString("IO_error_read") ~ "\n" ~ file.toString()); 323 displayError(resAddressBook.getString("IO_error_read") ~ "\n" ~ file.toString());
324 return; 324 return;
325 } finally { 325 } finally {