The Daily Click ::. Forums ::. Klik Coding Help ::. Help me with the file object
 

Post Reply  Post Oekaki 
 

Posted By Message

vuzzupp



Registered
  22/01/2005
Points
  72
8th September, 2005 at 14:17:06 -

Hi i'm making a "notepad" like program and i'm using the "file object" to save / load text....


I'm using the "edit text object" for the main window( wher you type stuff into) but how (using the "file object") do i make it save the content of the "edit text object" ( with a user set filename, path etc).... And tehn maybe later, load it up again into the "edit text object", so it appears there again?

 
Website: Http://www.sharemygames.com

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
8th September, 2005 at 15:53:31 -

You can just use the edit object to load and save

Upon [event to save]
= edit object > files > Save text via a selector

upon [event to load]
= edit object > files > Load text via a selector

simple

 
My signature is never too big!!!

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
8th September, 2005 at 18:42:06 -

Have you ever used scripting languages, like Basic, Java, PHP, C, something like that?

This is a common mistake when coders try MMF for the first time.

When you're writing in a programming language, you usually use one command to load data, then another to do things with it.

With MMF, you're not tied to that idea as much. You can normally get the object to load a file itself.

File Object is more for moving, copying, deleting and renaming files and folders. It can also retrieve information about them and the computer (like the version of windows, I think)

 
191 / 9999 * 7 + 191 * 7
   

Post Reply



 



Advertisement

Worth A Click