A scanner can read text from any object which implements the Readable interface. If an invocation of the underlying readable's Readable.read(java.nio.CharBuffer) method throws an IOException then the scanner assumes that the end of the input has been reached. The most recent IOException thrown by the underlying readable can be retrieved via the ioException() method.
but i get no errors thrown the programe reads a file and writes it to plain txt but the writen file is empty, the programe reads a numbr of files but it only fails to grab data from files that have these white spaces.
i have tryed putting Strings at the start of the file but the Scanner doesint even read them which has me puzzled i did read through the doc but couldint find the answer. i have solved the problem but it still has me puzzled no doubth i will run into this problem again or will stumble onto the answer