TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vladimir Gajic
NA
57
12.3k
Reading and analysing textfiles and building sting arrays
Apr 5 2017 6:41 AM
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
Reply
Answers (
17
)
How to get int math.random round number?
How to find the Doctype is in xml file or not.