This is driving me nuts
I'm parsing files right ....
I opt to use an = sign as a delimiter but when NEOBOOK file writes out the updated content to a new file it keeps adding these little square characters on each line. I have no clue how to delete those. Tried all the special characters as delimiters and it won't go away. I did notice when I used [#13] that it generated more square characters in the output file. However, why would NEOBOOK add these to a file after selecting the "=" as the delimiter.
It's messing up my parsing and data manipulation.
I uploaded a screenshot because for whatever reason the forum won't display the square characters I'm talking about.
EXAMPLE
This code ....
FileToVar "![PubDir]\STATIONS_1.txt" "[RAW_PLAYLIST]"
StrParse "[RAW_PLAYLIST]" "=" "[arrayB]" "[pcountB]"
Loop "1" "[pcountB]" "[loop_position]"
FileWrite "![PubDir]\STATIONS_2.txt" "Append" "[arrayB[loop_position]]"
EndLoop
Outputs this issue
http://s21.postimg.org/le4qqrkk7/SQUARES_2.jpg
Circled the little squares that should not be there
http://s14.postimg.org/sju2bgtz5/SQUARES_1.jpg
Any ideas ?
Thanks!
Square characters in output file after parsing ??
Moderator: Neosoft Support
-
- Posts: 18
- Joined: Thu Aug 21, 2014 4:21 am
Re: Square characters in output file after parsing ??
The file where?
Share.
Share.
Re: Square characters in output file after parsing ??
netmediasurfer:
1) Are the screen shots of how notepad.exe renders the output file (STATIONS_2.txt) ?
2) Please post a screen shot of how it also renders STATIONS_1.txt
Most likely, the problem is caused by the character(s) used to indicate "new line" ...[#13][#10] (expected by Windows/notepad) vs just [#13] or [#10] used by *nix/mac systems.
If possible, upload the original file (STATIONS_1.txt) to a server from where it can be downloaded/examined.
1) Are the screen shots of how notepad.exe renders the output file (STATIONS_2.txt) ?
2) Please post a screen shot of how it also renders STATIONS_1.txt
Most likely, the problem is caused by the character(s) used to indicate "new line" ...[#13][#10] (expected by Windows/notepad) vs just [#13] or [#10] used by *nix/mac systems.
If possible, upload the original file (STATIONS_1.txt) to a server from where it can be downloaded/examined.
-
- Posts: 18
- Joined: Thu Aug 21, 2014 4:21 am
Re: Square characters in output file after parsing ??
Hi, thanks!
Managed to resolve the issue.
Yes, I'm opening the .txt file in Windows notepad when I see those square characters. I went back & started from scratch to see if I could find a better way to utilize the delimiters in the way I was breaking the data down. As you suggested I had to use some combination of special characters.
EXAMPLE
StrParse "[RAW_PLAYLIST]" "[#13][#10][#124]" "[arrayD]" "[pcountD]"
CODE EXAMPLE
.FOURTH DELIMITER FILTER
FileToVar "![PubDir]\STATIONS_3.txt" "[RAW_PLAYLIST]"
StrParse "[RAW_PLAYLIST]" "[#13][#10][#124]" "[arrayD]" "[pcountD]"
Loop "1" "[pcountD]" "[loop_position]"
FileWrite "![PubDir]\STATIONS_4.txt" "Append" "[arrayD[loop_position]]"
EndLoop
Thanks!
Managed to resolve the issue.
Yes, I'm opening the .txt file in Windows notepad when I see those square characters. I went back & started from scratch to see if I could find a better way to utilize the delimiters in the way I was breaking the data down. As you suggested I had to use some combination of special characters.
EXAMPLE
StrParse "[RAW_PLAYLIST]" "[#13][#10][#124]" "[arrayD]" "[pcountD]"
CODE EXAMPLE
.FOURTH DELIMITER FILTER
FileToVar "![PubDir]\STATIONS_3.txt" "[RAW_PLAYLIST]"
StrParse "[RAW_PLAYLIST]" "[#13][#10][#124]" "[arrayD]" "[pcountD]"
Loop "1" "[pcountD]" "[loop_position]"
FileWrite "![PubDir]\STATIONS_4.txt" "Append" "[arrayD[loop_position]]"
EndLoop
Thanks!