Testing to write custom letter and number to txt
Hello. I need to write into .txt file custom text like "a44fG3D3o".
Every time delete old and write newone. My script: PHP Code:
|
Re: Testing to write custom letter and number to txt
https://forums.alliedmods.net/showthread.php?t=46218
you have to parse all line of that file and write data on a new line |
Re: Testing to write custom letter and number to txt
Quote:
|
Re: Testing to write custom letter and number to txt
I try:
PHP Code:
|
Re: Testing to write custom letter and number to txt
Simply open a file with the "w" mode in fopen(). This will delete all existing contents and write your new text in the newly blank file.
PHP Code:
|
Re: Testing to write custom letter and number to txt
Quote:
Now any ideas how to open filename, read the number and count? Then add +1. Example: filename.txt has numer 7. Read that number and put +1. |
Re: Testing to write custom letter and number to txt
Quote:
Check the new file commands section. |
Re: Testing to write custom letter and number to txt
Quote:
|
Re: Testing to write custom letter and number to txt
I try to do something like that:
PHP Code:
|
Re: Testing to write custom letter and number to txt
Try this:
Code:
public WriteMatchID() |
| All times are GMT -4. The time now is 14:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.