Hi,
I want to read a file from a specific line to end of file.
For example the file contains following text:
GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name
page address name
---- ------- ----
abs ffffffff .text
0 0000912a C$$EXIT
0 000091c5 I$$DIV
0 000091d6 I$$MOD
....
....
abs ffffffff binit
0 00000122 cinit
0 00000000 code_start
abs ffffffff etext
abs ffffffff pinit
GLOBAL SYMBOLS: SORTED BY Symbol Address
page address name
---- ------- ----
0 00000000 code_start
0 00000122 ___cinit__
0 00000122 cinit
0 00000144 _F28x_usDelay
0 00000148 _InitGpio
0 00000188 _GPIO_SetupPinMux
0 00000214 _GPIO_SetupPinOptions
0 000002a8 _GPIO_SetupLock
0 000002d1 _GPIO_SetupXINT1Gpio
0 000002db _GPIO_SetupXINT2Gpio
0 000002e5 _GPIO_SetupXINT3Gpio
0 000002ef _GPIO_SetupXINT4Gpio
0 000002f9 _GPIO_SetupXINT5Gpio
0 00000303 _GPIO_EnableUnbondedIOPullupsFor176Pin
0 0000031c _GPIO_EnableUnbondedIOPullupsFor100Pin
0 00000341 _GPIO_EnableUnbondedIOPullups
...
GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name
page address name
---- ------- ----
abs ffffffff .text
0 0000912a C$$EXIT
0 000091c5 I$$DIV
0 000091d6 I$$MOD
....
....
abs ffffffff binit
0 00000122 cinit
0 00000000 code_start
abs ffffffff etext
abs ffffffff pinit
GLOBAL SYMBOLS: SORTED BY Symbol Address
page address name
---- ------- ----
0 00000000 code_start
0 00000122 ___cinit__
0 00000122 cinit
0 00000144 _F28x_usDelay
0 00000148 _InitGpio
0 00000188 _GPIO_SetupPinMux
0 00000214 _GPIO_SetupPinOptions
0 000002a8 _GPIO_SetupLock
0 000002d1 _GPIO_SetupXINT1Gpio
0 000002db _GPIO_SetupXINT2Gpio
0 000002e5 _GPIO_SetupXINT3Gpio
0 000002ef _GPIO_SetupXINT4Gpio
0 000002f9 _GPIO_SetupXINT5Gpio
0 00000303 _GPIO_EnableUnbondedIOPullupsFor176Pin
0 0000031c _GPIO_EnableUnbondedIOPullupsFor100Pin
0 00000341 _GPIO_EnableUnbondedIOPullups
...
To copy to clipboard, switch view to plain text mode
Questions:
1) How can I read file from the line "GLOBAL SYMBOLS: SORTED BY Symbol Address" to end of file.
2) How can I determine which line number in text file that sentence stays?
3) How can I read file from a specific line to a specific line. For example I want to read all lines only between "GLOBAL SYMBOLS: SORTED ALPHABETICALLY BY Name
" and "GLOBAL SYMBOLS: SORTED BY Symbol Address"
Thanks.
Bookmarks