Hi,
You should post the code that you used not something you made up.
The code you posted doesn't work neither on windows nor unix/linux
If you want help post your complete code cut and paste.
--
Regards, Ron AF Greve
http://moonlit.xs4all.nl
"Dilip" <> wrote in message
news: ups.com...
>
> Moonlit wrote:
>> Hi,
>>
>> \t
>> means tabstop
>> use either
>> c:/temp/somefile.txt
>> or
>> c:\\temp\\somefile.txt
>
> That was just an example. I know a backslash inside a string needs to
> be escaped. The file does get created. Its just that I can't write
> anythng into it because fail() returns true and I can't figure out why.
> The low level OS _open (or whatever) call seems to successfully create
> the file everytime. Somewhere after that I don't know why that bit is
> getting set.
>