View Single Post
EfeDursun125
Senior Member
Join Date: Feb 2019
Location: Turkey
Old 04-11-2022 , 04:29   Re: File cannot be read correctly (only reads 1 character)
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
ok, because you did not show whole code first (SourcePawn), not sure how you opened file.
Seems you opened file as normally.

Game have also called "KeyValues" structure, so I wanted to be sure which kind data we are handling.
- Lets forget this, for now.


There is sometimes problem with different Operation System (Linux vs Windows) and txt file, where "new line" bytes get mixed.

Example, if I remember right, you open txt file made on Linux, into Windows OS, you have all text in first line.
You are missing new line char.
https://www.commandlinewizardry.com/...ws-line-breaks

To make sure, your file work:
- Tell us which OS your server is ?
- Upload your path file in your post. With notepad++ can check which file format it is.
It's all generated on Windows and file is not txt its saved as custom format, i think its reading the data incorrectly

file: data1data2data3
reads only: d (missing: ata1data2data3, but exists in file)

EDIT: when i save as text it fills with empty spaces
Attached Files
File Type: txt ctf_doublecross.txt (7.2 KB, 16 views)
__________________
CS 1.6 E-BOT (Best Bot For Zombie Plague): https://github.com/EfeDursun125/CS-EBOT

Last edited by EfeDursun125; 04-11-2022 at 04:39.
EfeDursun125 is offline