Page 1 of 2
Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Sat Feb 16, 2008 8:03 pm
by asmodeus
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?
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Sat Feb 16, 2008 9:04 pm
by DarkParadox
This would be a good idea
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Sat Feb 16, 2008 10:43 pm
by Game A Gogo
Would be greatly usefull!
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Mon Feb 18, 2008 6:12 pm
by Kalladdolf
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
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Mon Feb 18, 2008 11:28 pm
by Game A Gogo
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
}
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Feb 19, 2008 10:27 am
by Kalladdolf
thx
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Feb 19, 2008 2:38 pm
by Bee-Ant
Oi Gogo, EXT or TXT???
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Feb 19, 2008 7:51 pm
by Fuzzy
you can see from the r+b that its not a text file.
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Feb 19, 2008 10:40 pm
by Game A Gogo
EXT stands for extension. remove the "b" at the end of "r+b" to read text files
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Feb 20, 2008 8:11 am
by Kalladdolf
so "EXT" with "r+b" means, like, open anything?
I mean, any kind of file type?
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Feb 20, 2008 1:51 pm
by Game A Gogo
no, it's just something I had placed. if you want to open a file, you will need to know the extension as well.
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Feb 20, 2008 2:41 pm
by Kalladdolf
oh, uh-huh
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Thu Feb 21, 2008 8:16 am
by Bee-Ant
Understood
![Very Happy :D](http://game-editor.com/forum/images/smilies/icon_biggrin.gif)
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Tue Mar 11, 2008 3:18 pm
by asmodeus
Here is another feature that would be great with GE: read files from the internet.
Re: Some additional features for files
![Post Post](styles/prosilver/imageset/icon_post_target.gif)
Posted:
Wed Mar 12, 2008 7:26 am
by Bee-Ant
Cant opened...I think something wrong with your link