Hi guys,
I’m trying to get display the file chosen in the log but I keep getting ‘Invalid operands to binary expression (‘juce::String’ and ‘juce::File’)’ as an error message.
This is my code:
FileChooser chooser ("please load a file");
if (chooser.browseForFileToOpen ()){
auto file = chooser.getResult ();
DBG(file);
mFormatReader = mFormatManager.createReaderFor(file);
}
I have tried std::to_string(file) but I keep getting errors.
What am I missing?
I am trying to get back into C++ so any help is much appreciated!