Raised This Month: $ Target: $400
 0% 

Is it possible to create a text file?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cyher Marx
Junior Member
Join Date: Dec 2008
Old 03-25-2011 , 03:30   Is it possible to create a text file?
Reply With Quote #1

Is it possible to create a blank text file through sourcemods? It would prove really useful to me, and I'm very curious... Any help would be much appropriated
-Brandon
Cyher Marx is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 03-25-2011 , 03:33   Re: Is it possible to create a text file?
Reply With Quote #2

PHP Code:
new Handle:hFile OpenFile("test.txt""w");
WriteFileLine(hFile"");
FlushFile(hFile);
CloseHandle(hFile); 
Leonardo is offline
Cyher Marx
Junior Member
Join Date: Dec 2008
Old 03-25-2011 , 03:34   Re: Is it possible to create a text file?
Reply With Quote #3

Thanks a lot man, I've been curious for a while!
Cyher Marx is offline
Cyher Marx
Junior Member
Join Date: Dec 2008
Old 03-25-2011 , 03:59   Re: Is it possible to create a text file?
Reply With Quote #4

Quote:
Originally Posted by Cyher Marx View Post
Thanks a lot man, I've been curious for a while!
I hate to double post, but it didn't work when I tried it.. Any ideas why?
Cyher Marx is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 03-25-2011 , 06:39   Re: Is it possible to create a text file?
Reply With Quote #5

Quote:
Originally Posted by Cyher Marx View Post
I hate to double post, but it didn't work when I tried it.. Any ideas why?
More info? The file should have shown up under your mod directory.
__________________
pheadxdll is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode