Quote from
joferar333 on November 20, 2023, 3:14 pm
Hola!
He detectado un comportamiento extraño a la hora de grabar un archivo.
Miren esto yo utilizo esta sentencia...
neoPhpFileWrite "myfile.txt" "[fecha] [planilla] [ncuota ] Efectivo $[importe]\r\n" true ""
y el archivo escribe...
11/20/23 2311 2568
1 Efectivo $1230
11/20/23 2311 3958
5 Efectivo $6000
11/20/23 2311
1 Transferencia $8500
cuando lo correcto porque es linea por linea deberia ser
11/20/23 2311 2568 1 Efectivo $1230
11/20/23 2311 3958 5 Transferencia $8500
SOLUCIONADO, el error estaba en la linea de grabar
neoPhpFileWrite "myfile.txt" "[fecha] [planilla] [ncuota ] Efectivo $[importe]\r\n" true ""
Sintasis correcta
neoPhpFileWrite "myfile.txt" "[fecha] [planilla] [ncuota ] Efectivo $[importe]\n" true ""
Hola!
He detectado un comportamiento extraño a la hora de grabar un archivo.
Miren esto yo utilizo esta sentencia...
neoPhpFileWrite "myfile.txt" "[fecha] [planilla] [ncuota ] Efectivo $[importe]\r\n" true ""
y el archivo escribe...
11/20/23 2311 2568
1 Efectivo $1230
11/20/23 2311 3958
5 Efectivo $6000
11/20/23 2311
1 Transferencia $8500
cuando lo correcto porque es linea por linea deberia ser
11/20/23 2311 2568 1 Efectivo $1230
11/20/23 2311 3958 5 Transferencia $8500
SOLUCIONADO, el error estaba en la linea de grabar
neoPhpFileWrite "myfile.txt" "[fecha] [planilla] [ncuota ] Efectivo $[importe]\r\n" true ""
Sintasis correcta
neoPhpFileWrite "myfile.txt" "[fecha] [planilla] [ncuota ] Efectivo $[importe]\n" true ""
luishp and Darbdenral have reacted to this post.