How to save array to a path?

For questions about using Classic.

Post » Tue Mar 10, 2009 9:18 pm

When saving an array, it saves to the same location of the .cap. How can I save it to another directory?

At the moment, I'm trying to move the saved array to another directory in the same folder, but I'm not sure how to get it to work.
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432

Post » Tue Mar 10, 2009 9:39 pm

The parameter is just a path to save it to, not a filename, so whatever you type in it is where it goes.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Tue Mar 10, 2009 9:58 pm

You shouldn't use a filename without a path. If you do that, the operating decides where it goes, and on different computers it might not be the same path as the .cap. Use AppPath & "Filename.ext" if you want it in the same directory.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Tue Mar 10, 2009 11:18 pm

Thanks. :)
Moderator
B
88
S
32
G
33
Posts: 3,005
Reputation: 27,432


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests