No _server.writeFile equivalent in 2X?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

mixart
Posts: 95
Joined: 08 Aug 2007, 20:32

No _server.writeFile equivalent in 2X?

Postby mixart » 18 Apr 2012, 09:32

Looked through all the docs - is there no 2X _server.writeFile functionality in 2X java server-side extension?

Do we have to use Java.io classes for this?
User avatar
Lapo
Site Admin
Posts: 21685
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: No _server.writeFile equivalent in 2X?

Postby Lapo » 18 Apr 2012, 11:18

Java already provides all the necessary tools to read/write files.
Check the java.io package for all the details or search on google for some code examples.
http://docs.oracle.com/javase/1.5.0/doc ... mmary.html

Typically you will use a FileOutputStream class.
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Bing [Bot] and 27 guests