Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
17
Reply
Reading and analysing textfiles and building sting arrays
Vladimir Gajic
Apr 5 2017 6:41 AM
389
Reply
Hello community,
I'm working on a project were I need to read several types of measurement files (basically text). In most cases, the files consist of a header and several additional lines like this:
Orginator "blah blah"
Descriptor "blah blah"
...........
...........
begin_data
0 1 2 3 4 5 6 7 8 9 ....... X
end_data
What I want is to:
1. Open the file
2. Analyze the file and search for strings named begin_data and end_data
3. Remove everything except the numbers between end_data and begin_data
4. Built a string array constisting only of the numbers then split the string using " " as separator
The begin_data and end_data strings are allways present but may vary in position.
Gratefull for any ideas and suggestions.
Vladimir
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
17
)
Next Recommended Forum
How to get int math.random round number?
How to find the Doctype is in xml file or not.