Raised This Month: $51 Target: $400
 12% 

Solved Write file


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Swolly
Senior Member
Join Date: Jul 2018
Location: Turkey
Old 01-19-2019 , 07:41   Write file
Reply With Quote #1

I writing file with plugin but adding blank lines I how disable line

Ss:
http://prntscr.com/m9a1tt

My plugin creating file and write line test but adding blank line
Code:
	Handle hFile = OpenFile(Path_, "a", false, "GAME");
	WriteFileLine(hFile, "TEST");
	CloseHandle(hFile);

Last edited by Swolly; 01-19-2019 at 15:51.
Swolly is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-19-2019 , 14:02   Re: Write file
Reply With Quote #2

WriteFile
https://sm.alliedmods.net/new-api/files/WriteFile
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Swolly
Senior Member
Join Date: Jul 2018
Location: Turkey
Old 01-19-2019 , 14:21   Re: Write file
Reply With Quote #3

Quote:
Originally Posted by Dragokas View Post
my problem write file adding blank line
Swolly is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-19-2019 , 14:56   Re: Write file
Reply With Quote #4

WriteFileLine is your problem. Replace it.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Swolly
Senior Member
Join Date: Jul 2018
Location: Turkey
Old 01-19-2019 , 15:26   Re: Write file
Reply With Quote #5

Quote:
Originally Posted by Dragokas View Post
WriteFileLine is your problem. Replace it.
can you give an example
Swolly is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-19-2019 , 15:30   Re: Write file
Reply With Quote #6

What exmaple? Open editor, find "WriteFileLine" => replace "WriteFile".
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Swolly
Senior Member
Join Date: Jul 2018
Location: Turkey
Old 01-19-2019 , 15:34   Re: Write file
Reply With Quote #7

Quote:
Originally Posted by Dragokas View Post
What exmaple? Open editor, find "WriteFileLine" => replace "WriteFile".
error 178: cannot coerce char[] to int[]; storage classes differ
Swolly is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-19-2019 , 15:41   Re: Write file
Reply With Quote #8

------
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-19-2019 at 15:42.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-19-2019 , 15:44   Re: Write file
Reply With Quote #9

sorry, try:
Code:
WriteFileString(hFile, "TEST", false);
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Swolly
Senior Member
Join Date: Jul 2018
Location: Turkey
Old 01-19-2019 , 15:51   Re: Write file
Reply With Quote #10

Quote:
Originally Posted by Dragokas View Post
sorry, try:
Code:
WriteFileString(hFile, "TEST", false);
Thanks, working
Swolly 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 16:24.


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