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
recca hanabishi
NA
10
0
Breaking a line in a file..
May 16 2006 11:14 PM
good day
anyone out there knows how to break a line in a file?
for example: i have this file name "sample.txt" and contains
fjdslfjlkdsjf;fsdafdsffdsd;fasdfsdf;0;fsdaf
fsdaffdsffd;fsdafdsfafds;fasdfds;9;fdsfsd.
What i want to do is.. i want to break the first line whenever
the system meets the semicolon , and populate
its values to the listview control.
im looking for a function..
my code:
dim f as new filestream("sample.txt", filemode.open, fileaccess.read
dim r as new streamreader(f)
dim lv as new listviewitem
r.basestream.seek(0,seekorigin.begin)
while r.peek()>-1
lv=lst.items.add(r.read().Tochararray(0,13)) //this part i break the first 13 items
lv.subitems.add(r.read().Tochararray(14,25)) //but this gets me to errors
end while
any help is appreciated.
thanx,
Reply
Answers (
0
)
Select row from dataset runtime
Help - Deleting a record from a MS Access Database