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
Robson Amaral
NA
132
17.5k
Read file and insert into bank
Apr 24 2018 4:23 PM
I need to read a file and save the Schedule Date field, Document Value, Protocol, Barcode, Record: record date and time, how could it be doing? Here is my code attached. The file can be opened in txt, but I can not attach it. Within this file I have several vouchers, I left only two as a basis for the explanation. I need help out of courtesy.
using
System;
using
System.Collections;
using
System.Collections.Generic;
using
System.IO;
using
System.Linq;
using
System.Text;
using
System.Threading.Tasks;
namespace
ServiceProcessingVouchers
{
public
class
ProcessReturn
{
private
static
object
objReader;
private
static
void
Main (
string
[] args)
{
List <
string
> Values found =
new
List <
string
> ();
try
{
string
[] File = System.IO.Directory.GetFiles (@
"\\ S3A601 \ ftp @ sefarix \ are \ Output_SDPJ \ test"
,
"* .cpv"
);
foreach
(var item
in
File)
{
string
[] line = item.Split (
new
[] {
''
}, StringSplitOptions.RemoveEmptyEntries);
if
(line.Length> = 3)
{
values found .Add (line [2]);
}
}
}
catch
(Exception ex)
{
}
}
}
}
File information:
------------------------------------------------
CONTAK TECHNOLOGY SA
--------------CONTAK CORPORATIVO--------------
Electronic Payments and Transfers
PAYMENT: JUDICIAL DEPOSIT
------------------------------------------------
Client: José Frederico Costa e Silva
Enc Ger APLIX - Cta C
Account: 5.535.0125
Agency: 104-Central
Cod. Bars: 898800000078 000002130424
017092700009 270400028680
Agreed: JUDICIAL DEPOSIT
Date Scheduling: 29/09/2017
Document Value: R$500,00
Protocol: 94651134
Source: CORPORATE CONTAK
================================================
EFFECTIVE TRANSACTION
================================================
Record: 29/09/2017 11:21:29 /local/home/tef/d/20170929/sfcg012.
Emission.: 30/09/2017 09:54:19
------------------------------------------------
CONTAK TECHNOLOGY SA
--------------CONTAK CORPORATIVO--------------
Electronic Payments and Transfers
PAYMENT: JUDICIAL DEPOSIT
------------------------------------------------
Client: José Afrânio
Enc Ger APLIX - Cta C
Account: 5.535.0125
Agency: 104-Central
Cod. Bars: 898800000078 000002130424
017092700009 270400028680
Agreed: JUDICIAL DEPOSIT
Date Scheduling: 29/09/2017
Document Value: R$509,00
Protocol: 94651134
Source: CORPORATE CONTAK
================================================
EFFECTIVE TRANSACTION
================================================
Record: 29/09/2017 11:21:29 /local/home/tef/d/20170929/sfcg012.
Emission.: 30/09/2017 09:54:19
------------------------------------------------
Reply
Answers (
6
)
asp.net Mvc types of fillters
where we used singleton in our .net project ?explain with ex