According to Brian L. Matthews: > > Well, it's time to put a stop to this bit of misinformation. When a file > is created, it exists as soon as the create succeeds, and can be > manipulated or opened again just the same as a file that's been around > since 1984. > > Consider: > > open F1, ">testfile" or die "can't create testfile: $!\n"; > open F2, "<testfile" or die "can't open testfile: $!\n"; > > This works fine. If testfile didn't exist until it was closed, it wouldn't > work, the second open would fail with a "No such file or directory". <snip> Ok! :-) If this is the case that's great! :-) However, the original question was: When I create a file I can not set the type and creator information. Not - can I read the file immediately after opening the file. :-/ Also, my question about your example is: Does the second OPEN statement cause the system to flush out any other system requests (such as file creations) before performing the second OPEN statement? If so, then the second OPEN statement is acting like the OPEN/CLOSE/OPEN I mentioned earlier. Because the second OPEN statement makes a system request which can not be fullfilled until the first request is completed. So to test this correctly, you need to open a file and then immediately do the type/creator command and see if it gets set correctly or if an error occurs. Then you'd have to try this out on both 68k systems as well as PPCs so you could be sure it did the same thing on both system types. :-( This is not to mention having to try it out on System 7.6, 7.5.5, 7.5.3, 7.2, 7.1, and 6.0. Blech. :-P And someone might go "Oh yeah. Right. You're just blowing smoke." Maybe - who cares really? This is getting into the "OH MY GOD!" stage. But the truth is I do not even know what kind of a system the person was running on, their OS, memory constraints, etc.... So it could be one of many reasons why they couldn't set their file's type and creator information. It might be something as simple as their not having installed MacPerl correctly (though I really doubt this as easy as it is to install). ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch