• 0
Sign in to follow this  
Guest --Luis --

Juntar Txt

Question

Guest --Luis --

Boas,

Tenho um formulario que gera com ASP um TXT e o mesmo tem duas colunas de dados separados por virgulas. Como faço para ajuntar os 3 TXT´s de modo que as colunas permaneçam como estão, sem relacionamento mesmo ?

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0
hum... acho que teria que ler e guardar em uma variavel os valores dos txts 1 e 2 e ao ler o 3, gravar os valores dos outros

Share this post


Link to post
Share on other sites
  • 0
Guest --Luis --
hum... acho que teria que ler e guardar em uma variavel os valores dos txts 1 e 2 e ao ler o 3, gravar os valores dos outros

Vou Exemplificar :

Os dados do arquivo txt1 é esse:

32 , 06:41:13

33 , 06:47:37

33 , 06:47:48

25 , 06:49:20

1 , 08:13:38

2 , 08:15:18

3 , 08:17:09

4 , 08:18:29

5 , 08:19:58

6 , 08:21:38

7 , 08:23:14

11 , 08:28:59

12 , 08:31:28

12 , 08:31:58

13 , 08:32:10

14 , 08:34:07

15 , 08:35:22

16 , 08:36:59

17 , 08:38:17

18 , 08:39:32

19 , 08:41:10

20 , 08:43:05

o do txt2 :

28 , 08:59:31

41 , 09:04:07

42 , 09:06:03

43 , 09:07:04

44 , 09:08:33

45 , 09:10:31

46 , 09:12:06

47 , 09:13:06

48 , 09:15:01

49 , 09:16:02

50 , 09:18:03

51 , 09:19:33

65 , 09:21:22

52 , 09:22:48

53 , 09:24:25

54 , 09:25:26

55 , 09:27:22

56 , 09:29:17

e o do txt3:

11 , 10:58:20

12 , 10:59:53

13 , 11:01:29

14 , 11:02:57

15 , 11:04:38

16 , 11:06:01

17 , 11:07:31

18 , 11:08:51

19 , 11:10:56

20 , 11:12:03

22 , 11:13:56

23 , 11:15:59

e preciso que junte os tres para ficarem assim:

TXT1 TXT2 TXT3

32 , 06:41:13 , , 28 , , 08:59:31 , , 11 , 10:58:20

33 , 06:47:37 , , 41 , , 09:04:07 , , 12 , 10:59:53

33 , 06:47:48 , , 42 , , 09:06:03 , , 13 , 11:01:29

25 , 06:49:20 , , 43 , , 09:07:04 , , 14 , 11:02:57

1 , 08:13:38 , , 44 , , 09:08:33 , , 15 , 11:04:38

2 , 08:15:18 , , 45 , , 09:10:31 , , 16 , 11:06:01

3 , 08:17:09 , , 46 , , 09:12:06 , , 17 , 11:07:31

4 , 08:18:29 , , 47 , , 09:13:06 , , 18 , 11:08:51

5 , 08:19:58 , , 48 , , 09:15:01 , , 19 , 11:10:56

6 , 08:21:38 , , 49 , , 09:16:02 , , 20 , 11:12:03

7 , 08:23:14 , , 50 , , 09:18:03 , , 22 , 11:13:56

11 , 08:28:59 , , 51 , , 09:19:33 , , 23 , 11:15:59

12 , 08:31:28 , , 65 , , 09:21:22

12 , 08:31:58 , , 52 , , 09:22:48

13 , 08:32:10 , , 53 , , 09:24:25

14 , 08:34:07 , , 54 , , 09:25:26

15 , 08:35:22 , , 55 , , 09:27:22

16 , 08:36:59 , , 56 , , 09:29:17

17 , 08:38:17 , ,

18 , 08:39:32 , ,

19 , 08:41:10 , ,

20 , 08:43:05 , ,

ok ?

Obrigado

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this