name outputfile problem

H

Huub

Hi,

I have a little problem. When I execute a script un Linux, it asks for a
name for the file to written, e.g. 'temp' (without the quotes of
course). When I want to open the written file it can't be found and it
turns out the filename has got an '?' added to its name. So, instead of
'temp' the filename is 'temp?'. In the code I can't find anything that
causes that '?' to be added.
What could be the cause of this addition?

Thanks,

Huub
 
J

Josef Moellers

Huub said:
Hi,

I have a little problem. When I execute a script un Linux, it asks for a
name for the file to written, e.g. 'temp' (without the quotes of
course). When I want to open the written file it can't be found and it
turns out the filename has got an '?' added to its name. So, instead of
'temp' the filename is 'temp?'. In the code I can't find anything that
causes that '?' to be added.
What could be the cause of this addition?

You haven't chomp()'ed the string.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,069
Latest member
SimplyleanKetoReviews

Latest Threads

Top