Find Jobs
Hire Freelancers

C# program to modify a text file

$30-50 USD

Cerrado
Publicado hace casi 14 años

$30-50 USD

Pagado a la entrega
Hello, I need a file requester to select a text file, then I need that text file automatically loaded up and have certain things in the text file changed based on certain criteria. ? Then I need the text file saved back to the directory that it was opened from but under a different filename. ## Deliverables Hello, I have a text file that I need to be automatically changed around using C#. ? I would like the load the program, have a file requester pop up asking me to choose my file. ? Then I want the programming to happen behind the scenes and then when done have a MessageBox pop up that says it is completed. The text file will contain a bunch of different machine code for CNC machines, but I only need a certain line changed around based on certain criteria, and then have that line split into two lines. ? For example: The line of code that I wanted to search for is this: X17.8Y-1.Z0.1G0H1E1 ** ** ** ** Now this line can be different from text file to text file because the values after X, Y, Z, G, H, and E may be different each time. ? It may look like this in another text file: X-20Y5.2Z1.1G2H4E3 The values may be positive or negative. Back to the example. ? I would need this line changed from this: X17.8Y-1.Z0.1G0H5E1 to this: [login to view URL] G43Z0.1H5M08 ** ** As you can see I need that line changed into two different lines. ? I need a G54 added to the first line. ? I also need a T(value) added to the end of the first line. ? This is where it gets tricky. ? The T(value) is actually the H(value) from the second line but incremented by one. ? T = H + 1 Then on the second line I need a G43 added to the start of the second line, along with the Z(value) H(value) and then a M08 added to the end of the line. Most of this can be done with [login to view URL] in C#, except for that part when the H(value) is determined and added to the T(value) on the first line. The text file may look something like this: * T1M6 (TOOL #1= 2.000 DIA. SHELL ENDMILL) 6G90M3M9S1800.2 X17.8Y-1.Z0.1G0H5E1 G1X-1.9F20. G0Z0.1 M5 When it is done being processed by the C# program, it should look like this: * T1M6 (TOOL #1= 2.000 DIA. SHELL ENDMILL) 6G90M3M9S1800.2 [login to view URL] G43Z0.1H5M08 G1X-1.9F20. G0Z0.1 M5 The line of code that I need to change will always be in a different spot in the text file(s) but it needs to be written back to the same spot. ? For example if it is found at line 10, it needs to become line 10 and 11. Here is another example with different a different H value since this will change the T value: [login to view URL] G43Z0.1H2M08 [login to view URL] contains two text files that are similar to the text files that I need to use against this software program. ** ** ** ** * * *This broadcast message was sent to all bidders on Tuesday May 11, 2010 3:59:25 AM: Hello, A very nice bidder pointed out that I had messed up in my bid. The T value is always the value of H + 1. In my example I had it wrong. This is the right example to go off of: X17.8Y-1.Z0.1G0H5E1 to this: [login to view URL] G43Z0.1H5M08 You can see that H has a value of 5 (H5) so T should be T6 (T=H+1). In my previous bid I had incorrectly listed H as having a value of 1 ex. (H1). Thanks. * * *This broadcast message was sent to all bidders on Tuesday May 11, 2010 4:23:17 AM: I have attached a zip file to my bid that shows two text file examples. These two examples are the type of text files that this software program must be able to process. Please see [login to view URL] inside the zip. * * *This broadcast message was sent to all bidders on Tuesday May 11, 2010 5:54:54 AM: Another very nice bidder has found a mistake I made. In my [login to view URL] (which is in [login to view URL] attached to my bid), there are two additional lines of text that need to be converted also. These two lines are slightly different because they end with a M7. The example line of text in my bid ends with a E1. The two lines of text are: “X5.75Y-0.625Z0.1G0H2E1M7?? and “X7.Y-0.625Z0.1G0H3E1M7?? After these lines are converted, they should read as: X7.Y-0.625G54G0T5 G43Z0.1H4M08 X5.75Y-0.625G54G0T3 G43Z0.1H2M08 Maybe these two additional statements can be found with a separate [login to view URL] statement than the one that needs to be created for the other example in my main bid Thanks to the bidder who found my mistake.
ID del proyecto: 3416901

Información sobre el proyecto

161 propuestas
Proyecto remoto
Activo hace 13 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
161 freelancers están ofertando un promedio de $30 USD por este trabajo
Avatar del usuario
See private message.
$42,50 USD en 3 días
5,0 (60 comentarios)
5,9
5,9
Avatar del usuario
See private message.
$25,50 USD en 3 días
5,0 (78 comentarios)
5,7
5,7
Avatar del usuario
See private message.
$25,50 USD en 3 días
4,9 (53 comentarios)
5,4
5,4
Avatar del usuario
See private message.
$42,50 USD en 3 días
5,0 (15 comentarios)
5,3
5,3
Avatar del usuario
See private message.
$17 USD en 3 días
4,9 (68 comentarios)
5,5
5,5
Avatar del usuario
See private message.
$42,50 USD en 3 días
4,6 (35 comentarios)
5,4
5,4
Avatar del usuario
See private message.
$42,50 USD en 3 días
5,0 (26 comentarios)
5,1
5,1
Avatar del usuario
See private message.
$42,50 USD en 3 días
5,0 (10 comentarios)
5,0
5,0
Avatar del usuario
See private message.
$17 USD en 3 días
4,8 (28 comentarios)
5,1
5,1
Avatar del usuario
See private message.
$25,50 USD en 3 días
5,0 (10 comentarios)
5,1
5,1
Avatar del usuario
See private message.
$20 USD en 3 días
5,0 (35 comentarios)
5,0
5,0
Avatar del usuario
See private message.
$42,50 USD en 3 días
5,0 (27 comentarios)
5,1
5,1
Avatar del usuario
See private message.
$25,50 USD en 3 días
4,9 (19 comentarios)
4,7
4,7
Avatar del usuario
See private message.
$17 USD en 3 días
5,0 (8 comentarios)
4,6
4,6
Avatar del usuario
See private message.
$33,15 USD en 3 días
4,9 (17 comentarios)
4,3
4,3
Avatar del usuario
See private message.
$34 USD en 3 días
5,0 (12 comentarios)
4,2
4,2
Avatar del usuario
See private message.
$12,75 USD en 3 días
5,0 (1 comentario)
3,7
3,7
Avatar del usuario
See private message.
$40,80 USD en 3 días
4,9 (15 comentarios)
3,9
3,9
Avatar del usuario
See private message.
$25,50 USD en 3 días
5,0 (15 comentarios)
3,7
3,7
Avatar del usuario
See private message.
$42,50 USD en 3 días
4,2 (20 comentarios)
4,5
4,5

Sobre este cliente

Bandera de UNITED STATES
Los Angeles, United States
5,0
20
Miembro desde ago 9, 2003

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.