
modpluz
New User
Aug 11, 2008, 2:18 AM
Post #1 of 2
(17496 views)
|
File I/O Problem - Help Needed
|
Can't Post
|
|
Good day, please i have a file input/output problem, while would this code be displaying a blank page. here is my code;
sysopen (HTML, 'myhtml.html', O_RDWR|O_EXCL|O_CREAT, 0755) or die "$filepath cannot be opened."; printf HTML "<html>\n"; printf HTML "<head>\n"; printf HTML "<title>My Home Page</title>"; printf HTML "</head>\n"; printf HTML "<body>\n"; printf HTML "<p align='center'>This is a test paragraph.</p>"; printf HTML "</body>\n"; printf HTML "</html>\n"; close (HTML);
|