text - Reading a part of a txt file in VB.NET -
i need read txt file part part... example, in txt file: (age,5char_name)
17susan23wilma25fredy
i need read firstly 17susan
. in other words, first 7 characters , after 23wilma
, 25fredy
, i'm not reading whole file , substring file record. there way via streamreader?
records 7 bytes... 2 bytes age, 5 bytes name , records in line. there no jump next line.
i think there solution:
dim filestream new filestream("\records.txt", filemode.open) dim streamreader new streamreader(fs) dim buffer(7) char bw.readblock(buffer, 0, 7) console.writeline(buffer)
this read first 7.. can read other via loop or for..
Comments
Post a Comment