Skip to content

Commit ba444bc

Browse files
committed
improve language
1 parent dc2ce86 commit ba444bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/ch8_filehandling.ptx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ public class DeleteFile {
501501
</program>
502502

503503
<p>
504-
Note that this is almost identical to the code within the <c>try</c> block of the <c>CreateFile </c>class we made earlier. The key difference is the use of the <c>delete()</c> method. This method will delete any file with the name that was linked to the myFile object. Similar to the <c>createNewFile()</c> method, it will return <c>true</c> if the file exists and can be deleted, and <c>false</c> if the file cannot be deleted.
504+
Note that this is almost identical to the code within the <c>try</c> block of the <c>CreateFile</c> class that we made earlier. The key difference is the use of the <c>delete()</c> method which will delete the file with the name that was linked to the myFile object. Similar to the <c>createNewFile()</c> method, it will return <c>true</c> if the file exists and can be deleted, and <c>false</c> if the file cannot be deleted.
505505
</p>
506506
</section>
507507

0 commit comments

Comments
 (0)