This is the file in .txt format:
#Distance
D 1-2 9997.930 0.038
D 2-3 9998.030 0.038
D 3-1 14142.110 0.094
#Angle
A 1-2-3 44-59-19 2.4
A 2-3-1 90-1-22.1 2.4
A 3-1-2 44-59-18.1 2
#Aizthmuth
B 3-1 225-0-15 1
B 1-2 0-0-58 1
#Koordinat Stesen
C 1 10000.00 10000.00 ! !
C 2 10002.7140 19998.00
C 3 20000.7140 19999.26
**********
I want to develop a visual basic program to reading file above.
This is condition i want:
-when vb read '#' character , just skip the line.(line or word begin with '#' is comment)
-when vb read 'D' , split the '1-2' to station value(String), 9997.930 and 0.038 to double(9997.93 to distance value and 0 0.038 to error value for distance)
-above step are same when vb read 'A','B' and 'c'(44-59-19(44 degree 59 minute 19 second),1-2-3 (this is station will convert to string)
-for C, if the line C end with ! ! , i want difference it with another value of c.(!! mean fixed coordinate)
i have try to build this code before , but the code i build are very complex!
I want your opinion how to develop this code.
Thank You for who can help me


Sign In
Create Account


Back to top









