dini_Exists in y_ini
#1

Hey,

how to check if an .ini file already exists with y_ini?

Would this work?:

PHP код:
if(!INI_LOAD(filename.ini))
{

Reply
#2

find it with .ini
Reply
#3

just use if(!fexist(filname.ini)) cause dini_exist do the same function diference is in names just
Reply
#4

Quote:
Originally Posted by Mr.Stranger
Посмотреть сообщение
find it with .ini
What do you mean?
Reply
#5

I think you should continue with Dini. After you are mastered in Dini switch to another type like DJson, y_ini, etc.
You can't mix y_cmd and Dini. I prefer you to use Dini.

pawn Код:
if(!dini_Exists(file))
Reply
#6

Quote:
Originally Posted by Mаkaveli
Посмотреть сообщение
just use if(!fexist(filname.ini)) cause dini_exist do the same function diference is in names just
Shall I use fopen to create the file aswell or does INI_OPEN create a file?
Reply
#7

Quote:
Originally Posted by Mr.Stranger
Посмотреть сообщение
I think you should continue with Dini. After you are mastered in Dini switch to another type like DJson, y_ini, etc.
You can't mix y_cmd and Dini. I prefer you to use Dini.

pawn Код:
if(!dini_Exists(file))
I want to use y_ini because it doesn't need so much resources. I just started scripting so it would be better to learn the right things right at the beginning.
Reply
#8

INI_OPEN creates file for exist use only fexist other things y_ini has
Reply
#9

As your wish. But i prefer to use Dini at beginning
Reply
#10

Quote:
Originally Posted by Mr.Stranger
Посмотреть сообщение
As your wish. But i prefer to use Dini at beginning
Well I started with dini but as I saw how much resources dini needs and how much y_ini I tryed to start learning y_ini. And till now it's pretty easy. There are only some little questions so far.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)