Project

General

Profile

Bug #52

Space being appended to end of file read

Added by Neil Ives over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
Start date:
01/21/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Open In 1,"WordList.txt"

For n = 0 to 5
    Input #1,Word$
    Print "-" + Word$ + "-"
Next

close 1

See picture for output:

Using Version 0.9.3,(version drop-down needs updating)


Files

Space-appended.jpg (17.7 KB) Space-appended.jpg Neil Ives, 01/21/2020 07:05 PM
FileBug.PNG (5.79 KB) FileBug.PNG Paul Kitching, 03/01/2020 04:54 PM
test.txt (12 Bytes) test.txt Paul Kitching, 03/01/2020 05:26 PM
#1

Updated by Anonymous over 4 years ago

Still the same in 0.9.3.1

#2

Updated by Baptiste Pillot over 4 years ago

  • Description updated (diff)
  • Assignee set to Francois Lionet
#3

Updated by Anonymous about 4 years ago

Fixed in version 9.3.2

#4

Updated by Francois Lionet about 4 years ago

  • Status changed from New to Feedback

Can you give me the "Wordlist" file?

#5

Updated by Anonymous about 4 years ago

The latest version of AOZ has this fixed

#6

Updated by Paul Kitching about 4 years ago

I'm still getting this problem. I have to remove the last character from each read or my comparison with an entered search doesn't find a match. Oddly, it's not showing the space in a 'print', but does show something in a 'len':

#manifest: "pc"
#displayWidth:1920
#displayHeight:1080
#fullScreen:true
#fps:false
#splashScreen:false

Open In 1,"test.txt"
Input #1,test1$
Input #1,test2$
close 1
print "'"+test1$+"'"+str$(len(test1$))
print "'"+test2$+"'"+str$(len(test2$))
if test1$="test1" then print "test1 found"
if test2$="test2" then print "test2 found"
wait key

My file has this in it:

test1
test2

The last line works, but the others don't. I have to put a carriage return after the test2 for it to be consistent, then I can remove the last char from each one so a comparison will return a true on another variable with the same string.

The output shows that test2 is found. See attached pic.

#7

Updated by Paul Kitching about 4 years ago

I've attached the file.

#8

Updated by Neil Ives about 4 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF