Simple prgm. To run it you need an external .txt file called "Init.txt".
What this prgm is meant to do is create separate .txt file for each student. The .txt files should be named according to the ID (which MUST have 4 numbers and range from 1000-9999). When adding, it first needs to search for an available slot starting from 1000.
The problem occurs here: if(temp_file.exists() = false) I've tested the .exists() method and I know it returns true or false, yet the complier tells me: