Hi,
I have an issue with my input statement. I am trying to read a whole line in one variable. This is to do some fixing on a file. I do not have fixet length, and it can be long.
My problem is when input meets a double blank space, then it simply stops. I have used input @@ trying to get the whole lone. Is there another way?
My task is actually simple. I check every line by the first character. If it is a # then I want to write the line, if it is any other character as the first character, then I want to append it to the previous line.This shall make a file with lines starting with # and only that. Anyone knows a simple way to do this?
I have an issue with my input statement. I am trying to read a whole line in one variable. This is to do some fixing on a file. I do not have fixet length, and it can be long.
My problem is when input meets a double blank space, then it simply stops. I have used input @@ trying to get the whole lone. Is there another way?
My task is actually simple. I check every line by the first character. If it is a # then I want to write the line, if it is any other character as the first character, then I want to append it to the previous line.This shall make a file with lines starting with # and only that. Anyone knows a simple way to do this?