The short answer is that you add izlaz.close(); at line 25.
The long answer is that when you write to a stream, the program doesn't immediately write to the file. This is for performance reasons: reading & writing to a disk is around a MILLION times slower than reading/writing to/from memory. Adding the call to close() will cause the program to write the data out to the operating system and from there notepad will see it.