2008 Jan 24 4:46 AM
Hi Friends,
I have one scenario, i need a little bit help on that.
The scenario is that i have to read the last line of a file and check whether there is a special charater or not. If the special character is found , i should edit the file from the previous line .
Thanks and Regards
Sohit Gulati
Hi Friends,
I have one scenario, i need a little bit help on that.
The scenario is that i have to read the last line of a file and check whether there is a special charater or not. If the special character is found , i should edit the file from the previous line .
Thanks and Regards
Sohit Gulati
2008 Jan 24 9:15 AM
2008 Jan 24 11:45 AM
It is a sequential file which is on an application server.
Regards
Sohit
2008 Jan 24 11:51 AM
read the whole file (read dataset file) and store everything in a temporary internal table.
Once the file is read, read the last line of the internal table.
e.g. internal table = itab
describe table itab lines lv_lines.
read table itab index lv_lines.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |