Write temporary file in .app folder?

Mac OSX specific forum
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Write temporary file in .app folder?

Post by collectordave »

When running my programme writes temporary files into the folder it is running in.

Works fine when run with PB but when compiled as an app in the applications folder no temporary files are created!

Again am I missing something about the mac?

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3942
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Write temporary file in .app folder?

Post by wilbert »

I don't know if it is allowed to write to the .app folder.
It might be best to use GetTemporaryDirectory() to get a directory where you store the temporary files.
Windows (x64)
Raspberry Pi OS (Arm64)
collectordave
Addict
Addict
Posts: 1310
Joined: Fri Aug 28, 2015 6:10 pm
Location: Portugal

Re: Write temporary file in .app folder?

Post by collectordave »

Hi wilbert

Done and it works

thanks

CD
Any intelligent fool can make things bigger and more complex. It takes a touch of genius — and a lot of courage to move in the opposite direction.
Post Reply