AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [ H3LP ] Ini Save (https://forums.alliedmods.net/showthread.php?t=298890)

DarthMan 06-25-2017 07:42

[ H3LP ] Ini Save
 
Hello. So I want to save using a+ some information to an ini file. How can I save everytime a line up, meaning that the previous information will go a line down? I tried using ^r but it doesn't work, know ^n is to make a new empty line, but what I want is to basically make a new empty line before this line and on that empty line store the information. Thanks !

klippy 06-25-2017 08:10

Re: [ H3LP ] Ini Save
 
You have to create a new file or completely rewrite it. Files are stream and can only append while writing.

DarthMan 06-25-2017 08:33

Re: [ H3LP ] Ini Save
 
Quote:

Originally Posted by KliPPy (Post 2531592)
You have to create a new file or completely rewrite it. Files are stream and can only append while writing.

Ah, so there is no other way :(
Guess the easiest way is to use ^n before writing so it will create an empty line.


All times are GMT -4. The time now is 22:51.

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