im learning c++ using visual studio as ide. I'm currently doing io streams, but when i try to open a file, the program doesn't open the file.

here is the code -

```
#include <iostream>
#include <string>
#include <iomanip>
#include <fstream>
#include <vector>

int main()
{
    std::ifstream file;

    file.open("Text.txt");

    if (file.is_open())
    {
        std::cout << "open" << std::endl;
    }
    else
        std::cout << "not open" << std::endl;

}

```

i get the output as `not open`.

any help is appreciated, thanks