Maybe I’m tired, but I can’t figure out why this code creates an empty file :
[code]// At this point, we have a someString object of type juce::String which is correctly filled, according to the debugger. juce::OutputStream* os=someFile.createOutputStream(); os->writeString(someString); os->flush(); delete os;[/code]
The file object (someFile), is created, at the right place, but…it’s empty. The string “smeString” is not empty though. No idea why it happens. Any clues ?