Dear all,
i am trying to make a small qbasic program that reads some data from a text file. The part of the text i am interested in is "Dipole=X,Y,Z" where X,Y,Z are numbers. This would be rather trivial if the position of the word "Dipole" was fixed (say the first word in a line of the txt file". But the problem is that it's position changes in each file. The X,Y,Z numbers also do not have a specific length (the length varies). Is there any way to make qbasic locate where in the text file the word dipole is and then read the three numbers after it?
Thank you!
i am trying to make a small qbasic program that reads some data from a text file. The part of the text i am interested in is "Dipole=X,Y,Z" where X,Y,Z are numbers. This would be rather trivial if the position of the word "Dipole" was fixed (say the first word in a line of the txt file". But the problem is that it's position changes in each file. The X,Y,Z numbers also do not have a specific length (the length varies). Is there any way to make qbasic locate where in the text file the word dipole is and then read the three numbers after it?
Thank you!