Square characters in output file after parsing ??

Questions or information that don't quite fit anywhere else

Moderator:Neosoft Support

Locked
netmediasurfer
Posts:18
Joined:Thu Aug 21, 2014 4:21 am
Square characters in output file after parsing ??

Post by netmediasurfer » Mon Sep 01, 2014 6:03 pm

This is driving me nuts :D

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!

mishem
Posts:581
Joined:Mon Oct 08, 2012 1:51 pm

Re: Square characters in output file after parsing ??

Post by mishem » Mon Sep 01, 2014 6:17 pm

The file where?
Share.

User avatar
Gaev
Posts:3782
Joined:Fri Apr 01, 2005 7:48 am
Location:Toronto, Canada
Contact:

Re: Square characters in output file after parsing ??

Post by Gaev » Mon Sep 01, 2014 7:19 pm

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.

netmediasurfer
Posts:18
Joined:Thu Aug 21, 2014 4:21 am

Re: Square characters in output file after parsing ??

Post by netmediasurfer » Mon Sep 01, 2014 10:41 pm

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!

Locked