If I do this
fis = new FileInputStream(new File(\".\").getAbsolutePath() + \"/sudoinput.txt\");
Its trying to write to this location on the ser
You can keep the file created under resources and call .class.getresource(your_file_name_or_path_separated_with_forward_slash);
See if it works for you.