```
try (BufferedReader b = new BufferedReader(new FileReader(args[0]))) {
        System.out.println("Reading from file :" + args[0]);
        String s = null;
        while ((s = b.readLine()) != null) {
            System.out.println(s);
        }
    } catch (ArrayIndexOutOfBoundsException a) {
        System.out.println("No file specified, quitting !");
    } catch (FileNotFoundException fe) {
        System.out.println("File not found :" + args[0]);
    } catch (IOException ie) {
        System.out.println("Error reading file : " + ie.getMessage());
    }

```

here args[0] is : G:\Lab Practice\file.txt

**output:**
File not found :G:\Lab 

This is because there is a space in the path.
I've also tried replacing args[0] with args[0]+args[1] but it didn't work.
Could anyone help me to figure this out?