The Daily Click ::. Forums ::. Klik Coding Help ::. Directory Saving!
 

Post Reply  Post Oekaki 
 

Posted By Message

Earwig



Registered
  09/02/2003
Points
  36
4th June, 2003 at 03:34:29 -

Hi guys,
I'm having a problem with the INI and Disk objects...What im trying to do is make a New Folder (with File Object) then save an INI into the Folder...with a few complications. Heres my code...
Start of level-->
Create Directory (appdrive$ + appdir$ + "Teams")
When Enter Is Pressed-->
Set INI File to (appdrive$ + appdir$ + PROBLEM AREA + edittext("Team")+ ".sys"



 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
4th June, 2003 at 04:28:19 -

Wat the fudge? Could you try and re-explain your code?
I'll try my best ne way but can you re-write the code?

Start of level-->
Create Directory (appdrive$ + appdir$ + "Teams")
When Enter Is Pressed-->
Set INI File to (appdrive$ + appdir$ + "Teams" + edittext("Team")+ ".sys"

Can you tell me about the editbox "team" and what you are trying to do?



 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Earwig



Registered
  09/02/2003
Points
  36
4th June, 2003 at 05:13:51 -

Sorry mate...I mean the editbox is getting the text from the editbox and Im trying to make it save your 'Team' into the apps location but in the folder I just made.
(The folder being in the direcory of the App) I hope you understand this time as its kinda hard to explain.

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
4th June, 2003 at 05:17:35 -

Yep i get you.

Start of level-->
Create Directory (appdrive$ + appdir$ + "Teams")
When Enter Is Pressed-->
Set INI File to (appdrive$ + appdir$ + "Teams\" + edittext("Team")+ ".sys"

That should work, you need the end slash\. Btw for the ini to acctually save something i think you need to add some data to it. So for a test make a new group.


 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
4th June, 2003 at 05:17:38 -

Yep i get you.

Start of level-->
Create Directory (appdrive$ + appdir$ + "Teams")
When Enter Is Pressed-->
Set INI File to (appdrive$ + appdir$ + "Teams\" + edittext("Team")+ ".sys"

That should work, you need the end slash\. Btw for the ini to acctually save something i think you need to add some data to it. So for a test make a new group.


 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Earwig



Registered
  09/02/2003
Points
  36
4th June, 2003 at 05:26:38 -

nope....still dont work...The Directory gets created fine but the INI dont save
and yes I did put a group in to test it.

But thanx for your help anyway

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
4th June, 2003 at 05:31:12 -

Try deleting the .sys part.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Earwig



Registered
  09/02/2003
Points
  36
4th June, 2003 at 05:32:15 -

No need I got it working...It was the stupidest thing to...I had to make a string for the group, lol thanks for your help Andy!

 
n/a
   

Post Reply



 



Advertisement

Worth A Click