Jul 22, 2001 #1 vlitim Programmer Joined Sep 2, 2000 Messages 393 Location GB when i write a string to a textfile it gets put in with quotes around it, how do you get rid of these when reading the file line by line??
when i write a string to a textfile it gets put in with quotes around it, how do you get rid of these when reading the file line by line??
Jul 22, 2001 #2 MrMoocow Programmer Joined May 19, 2001 Messages 380 Location US You could just go left(stringname,1) right(stringname,1) after u read it. Upvote 0 Downvote
Jul 22, 2001 #3 dpaulson Programmer Joined May 7, 2000 Messages 347 Location CA If you use Print instead of Write, there will be no quotation marks. Otherwise, you could strip them out as in text = replace(text,"""","" David Paulson Upvote 0 Downvote
If you use Print instead of Write, there will be no quotation marks. Otherwise, you could strip them out as in text = replace(text,"""","" David Paulson
Jul 22, 2001 #4 wekkew Programmer Joined Sep 28, 1998 Messages 123 Location GB This can happen if you are using line input #1 <whatever> instead of input #1 <whatever> Kate Upvote 0 Downvote