Some additional features for files

Ideas for Game Editor evolution.

Some additional features for files

Postby asmodeus » Sat Feb 16, 2008 8:03 pm

I think, it were good, if I can rename and erase files.
And it is very useful for me to read the name of a file/folder and create folders.
For example I ask for the name of the third file in a folder with a function, it returns for example "charLeft.bmp", or I ask for folders' names.
What do you think about these features?
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Some additional features for files

Postby DarkParadox » Sat Feb 16, 2008 9:04 pm

This would be a good idea
User avatar
DarkParadox
 
Posts: 457
Joined: Mon Jan 08, 2007 11:32 pm
Location: USA, Florida.
Score: 84 Give a positive score

Re: Some additional features for files

Postby Game A Gogo » Sat Feb 16, 2008 10:43 pm

Would be greatly usefull!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Some additional features for files

Postby Kalladdolf » Mon Feb 18, 2008 6:12 pm

yes, for example to ask the name of a file, then have it as a string var and check the name of it.
if it isn't the one you wanna load, an error message appears.

if you could do something like that, I would appriceated it =D
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Some additional features for files

Postby Game A Gogo » Mon Feb 18, 2008 11:28 pm

this can be done like this:
Code: Select all
if(fopen("FILENAME.EXT",input,"r+b")==0)
{
//error code here
}
else
{
//no error code here
}
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Some additional features for files

Postby Kalladdolf » Tue Feb 19, 2008 10:27 am

thx
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Some additional features for files

Postby Bee-Ant » Tue Feb 19, 2008 2:38 pm

Oi Gogo, EXT or TXT???
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Some additional features for files

Postby Fuzzy » Tue Feb 19, 2008 7:51 pm

you can see from the r+b that its not a text file.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: Some additional features for files

Postby Game A Gogo » Tue Feb 19, 2008 10:40 pm

EXT stands for extension. remove the "b" at the end of "r+b" to read text files
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Some additional features for files

Postby Kalladdolf » Wed Feb 20, 2008 8:11 am

so "EXT" with "r+b" means, like, open anything?
I mean, any kind of file type?
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Some additional features for files

Postby Game A Gogo » Wed Feb 20, 2008 1:51 pm

no, it's just something I had placed. if you want to open a file, you will need to know the extension as well.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Some additional features for files

Postby Kalladdolf » Wed Feb 20, 2008 2:41 pm

oh, uh-huh
User avatar
Kalladdolf
 
Posts: 2427
Joined: Sat Sep 08, 2007 8:22 am
Location: Germany
Score: 120 Give a positive score

Re: Some additional features for files

Postby Bee-Ant » Thu Feb 21, 2008 8:16 am

Understood :D
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Re: Some additional features for files

Postby asmodeus » Tue Mar 11, 2008 3:18 pm

Here is another feature that would be great with GE: read files from the internet.
Last edited by asmodeus on Wed Mar 12, 2008 4:00 pm, edited 1 time in total.
User avatar
asmodeus
 
Posts: 483
Joined: Thu Oct 11, 2007 5:04 pm
Location: Germany
Score: 43 Give a positive score

Re: Some additional features for files

Postby Bee-Ant » Wed Mar 12, 2008 7:26 am

Cant opened...I think something wrong with your link
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Next

Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 1 guest