Add File functions definitions?


#1

Hi,

There are number of juce_file* functions used in File/Stream classes that are then declared in platform spcific code. Is it possible to put them in some header file so we can include them in our code?

Thanks, bye


#2

Not recommended. Those are internal functions that may change or disappear, and which aren’t necessarily platform-independent. What exactly are you trying to do?


#3

Hi,

I needed FileInputOutputStream so I wanted to reuse JUCE code…

If I had access (which I have though)
I only had to write my own juce_fileOpen to open file for reading and writing
and subclass InputStream and OutputStream - and that’s it…

Thanks, bye


#4

Ah, I see. Well, you’d be pretty safe using those functions as long as they’re used in the FileInputStream code.