View Single Post
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-11-2022 , 04:15   Re: File cannot be read correctly (only reads 1 character)
Reply With Quote #4

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.
__________________
Do not Private Message @me
Bacardi is offline