Click here to Skip to main content
15,905,414 members
Home / Discussions / C#
   

C#

 
AnswerRe: Split text file by Fixed Length Pin
Mbah Dhaim30-Apr-09 3:01
Mbah Dhaim30-Apr-09 3:01 
I will try to resume all answers in the following steps
1. Open file that you want to parse
2. Use StreamReader to read the file
3. Read line using StreamReader.ReadLine();
4. If Step 3 has data, continue to next step, other wise go to step 9
5. from result in above step replace all unnecessary characters with space, in your sample data replace "==" and '=' to space
6. split result from step 5 using method [yourstring].split in your sample use space as split character
7. post result from step 6 to database
8. repeat step 3 until 7
9. close your StreamReader
10. if there are errors occurred after you doing all steps, ask about them to this forum and read correlated documentations you need

happy coding... Smile | :)

dhaim
ing ngarso sung tulodho, ing madyo mangun karso, tut wuri handayani. "Ki Hajar Dewantoro"
in the front line gave a lead, in the middle line build goodwill, in the behind give power support



QuestionQuestion on Web serivce... Pin
Siva Koyi29-Apr-09 21:23
Siva Koyi29-Apr-09 21:23 
AnswerRe: Question on Web serivce... Pin
N a v a n e e t h29-Apr-09 21:56
N a v a n e e t h29-Apr-09 21:56 
GeneralRe: Question on Web serivce... Pin
Siva Koyi29-Apr-09 22:11
Siva Koyi29-Apr-09 22:11 
GeneralRe: Question on Web serivce... Pin
N a v a n e e t h29-Apr-09 23:07
N a v a n e e t h29-Apr-09 23:07 
GeneralRe: Question on Web serivce... Pin
Jabbar_espania30-Apr-09 1:33
Jabbar_espania30-Apr-09 1:33 
AnswerRe: Question on Web serivce... Pin
saanj29-Apr-09 23:47
saanj29-Apr-09 23:47 
Questionthread cpu usage Pin
shefa' isied29-Apr-09 21:07
shefa' isied29-Apr-09 21:07 
AnswerRe: thread cpu usage Pin
Jack Li29-Apr-09 21:21
Jack Li29-Apr-09 21:21 
AnswerRe: thread cpu usage Pin
N a v a n e e t h29-Apr-09 21:52
N a v a n e e t h29-Apr-09 21:52 
QuestionICollectionView Pin
Paw Jershauge29-Apr-09 20:29
Paw Jershauge29-Apr-09 20:29 
AnswerRe: ICollectionView Pin
Jack Li29-Apr-09 21:17
Jack Li29-Apr-09 21:17 
GeneralRe: ICollectionView Pin
Paw Jershauge29-Apr-09 21:41
Paw Jershauge29-Apr-09 21:41 
AnswerRe: ICollectionView Pin
Spunky Coder29-Apr-09 21:58
Spunky Coder29-Apr-09 21:58 
GeneralRe: ICollectionView Pin
Paw Jershauge29-Apr-09 23:28
Paw Jershauge29-Apr-09 23:28 
Questionhow to unbind source control Pin
Maddie from Dartford29-Apr-09 17:12
Maddie from Dartford29-Apr-09 17:12 
AnswerRe: how to unbind source control Pin
Mycroft Holmes29-Apr-09 17:59
professionalMycroft Holmes29-Apr-09 17:59 
AnswerRe: how to unbind source control Pin
dotnetmember29-Apr-09 18:21
dotnetmember29-Apr-09 18:21 
GeneralRe: how to unbind source control Pin
Maddie from Dartford29-Apr-09 19:19
Maddie from Dartford29-Apr-09 19:19 
GeneralRe: how to unbind source control Pin
Jack Li29-Apr-09 21:11
Jack Li29-Apr-09 21:11 
Question[Message Deleted] Pin
nishukri529-Apr-09 17:09
nishukri529-Apr-09 17:09 
AnswerRe: hi!!! Pin
Christian Graus29-Apr-09 17:41
protectorChristian Graus29-Apr-09 17:41 
GeneralRe: hi!!! Pin
HuntingWabbits29-Apr-09 23:23
HuntingWabbits29-Apr-09 23:23 
AnswerRe: hi!!! Pin
12Code29-Apr-09 17:42
12Code29-Apr-09 17:42 
AnswerRe: hi!!! Pin
12Code29-Apr-09 17:58
12Code29-Apr-09 17:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.