Page 1 of 1

[Implemented] Better File Lib

Posted: Sat Apr 30, 2005 12:21 pm
by Dummy
1. I miss the missing share_read flag in ALL PB's Filecommands! If I wanna write a log file I can't open it with notepad until the Program closes the file!

For the ReadFile() command maybe an optional flag?

ReadFile(#File, FileName$[, flags])

Possible values for flags:
#PB_FILE_NO_SHARE_READ
#PB_FILE_SHARE_WRITE

2. Better CreateDirectory():
The code

Code: Select all

CreateDirectory("C:\test1\test")
doesn't work, if "C:\test1" doesn't exist!

Please make it work!

I know there are lots of codes availble, but none of those is ASM/WinAPI optimized!

3. Please add ASM optimized
-CheckWildcardString(WildCards$, String$)
-CheckWildcardArray()
-CheckWildcardList()

I know for CheckWildcardString(WildCards$, String$) there are lots of codes availble, but none of those is ASM optimized!

If these changes are also possible for Linux, please add them to it, too!

Re: [Windows]Better File Lib

Posted: Sat Apr 30, 2005 12:51 pm
by PB
> CreateDirectory("C:\test1\test")
> doesn't work, if "C:\test1" doesn't exist!

That's normal. The Windows API command (CreateDirectory) also fails if you
do it like that. You need to use the MakeSureDirectoryPathExists API instead.

Posted: Sat Apr 30, 2005 12:58 pm
by flaith
Hi,

why under dos cmd : "md c:\test1\test" work ?

Posted: Sat Apr 30, 2005 1:19 pm
by PB
> why under dos cmd : "md c:\test1\test" work ?

Different command and different Operating System.

Posted: Sat Apr 30, 2005 2:20 pm
by Gansta93
Hi,

I think a flag for OpenFile() to place the read/write pointer at the end of the file would be good.

Re: [Windows]Better File Lib

Posted: Mon May 02, 2005 12:03 pm
by Dummy
PB wrote:You need to use the MakeSureDirectoryPathExists API instead.
Is it accessable through PureBasic?

Is the same Command(with same Parameters) avaible in Linux/comming Mac

> No -> no Crossplatform compatibility! :evil:

Hey Fred!

Will you add these features to PB till next Update?