How to read a .txt file in a batch script on a network?

Im making a litle game (im bored) and i want it to work in a LAN network, my map files are in a shared file dans when i try to echo the contents nothing comes out.

Here is the code:

( echo %personage% ) > %path%p1.txt

set /p p1=<%path%p1.txt

set /p p2=<%path%p2.txt

set /p p3=<%path%p3.txt

set /p p4=<%path%p4.txt

set /p p5=<%path%p5.txt

set /p p6=<%path%p6.txt

set /p p7=<%path%p7.txt

set /p p8=<%path%p8.txt

set /p p9=<%path%p9.txt

set /p p10=<%path%p10.txt

set /p p11=<%path%p11.txt

set /p p12=<%path%p12.txt

echo %p1%%p4%%p7%%p10%

echo %p2%%p5%%p8%%p11%

echo %p3%%p6%%p9%%p12%

I hope you guys can help me because i really want to play this game with some classmates when i finish this project.

Thank you for your help in advance.

Passar Arquivo Grande para o Banco (.txt)

Tenho arquivo de 1M de linhas, e quero passar essas linhas para o Banco de Dados, e se eu for por linha a linha, demora em muito tempo, o que eu queria seria algo mais rápido para passar através de código, o mais rápido é utilizando este código…

string connString = "Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=" + diretorio + ";Extended Properties=\"Text;HDR=No;FMT=TabDelimited\""; 

Teriam como ajudar

Escribir dos matrices en archivo .txt en C

estoy aprendiendo a escribir en archivos en C y estoy atascado en un problema. La cosa es que tengo dos matrices y quiero escribir en un archivo todos los números distintos de 0 por cada fila y columna de cada matriz. Es algo sencillo pero hay una parte que aún no logro solucionar. Mi código es el siguiente:

#include <stdio.h> int main(){ FILE *fichero; int i = 0; int j = 0; int matriz1[3][3] = {{1,2,0},                      {1,1,0},                      {1,0,0},};  int matriz2[3][3] = {{1,5,5},                      {1,5,5},                      {1,5,5},}; fichero = fopen("salida.txt","w"); for (int i = 0; i < 3; ++i) {     for (int j = 0; j < 3; ++j)     {         if (matriz1[i][j]!=0)         {             fprintf(fichero,"%d ",matriz1[i][j]);         }         else if (matriz2[i][j]!=0)         {             fprintf(fichero,"%d ",matriz2[i][j]);         }     }     if (matriz1[i][j]!=0)     {         fprintf(fichero,"\n");     } } fclose(fichero); return 0; } 

el cual me escribe lo siguiente:

1 2 5  1 1 5  1 5 5  

y lo que quiero obtener es:

1 2 1 5 5 1 1 1 5 5 1 1 5 5 

He intentado corrigiendo y moviendo los indices de las matrices pero no encuentro una solución que funcione para todos los casos, también creo estar usando mal los ciclos for. Por favor si alguien me puede ayudar con este problemita.

writing in .txt file by reading with .csv file in C/C++

/*I want to read global variable from .csv file --------------- suppose in .csv  Before comma value will be variable and after comma value variable value. i,5.40 j,10.68 s,20.65 ------------- */     int main() {       FILE *fp1 = fopen("input.csv" , "r");       FILE *fp2 = fopen("output.txt" , "w");        fprinf(fp2,"Sum of i and j = %.2f", i+j);       fprinf(fp2,"Division of s by j = %.2f", s/j);        return 0;   } 

/* ————————– output.txt

sum of i and j = 16.08 Division of s by j =1.93 ---------------------  Please help me in this program with C/C++ */ 

I want to read global variable from .csv file Before comma value will be variable and after comma value

Color Palette for Code Editor (.txt)

Hello. As I understand it, it would be possible to colorize text in a .txt file but not without building your own package & other things I have no interest in doing.

I'm using Visual Studio and have "note" .txt files, 4 files in a 4×4 grid. All of the notes are plain white. I wish there was a color palette I could select to highlight certain notes and/or headers. Would this be possible with any other file format that you know of?

I know I could make them HTML files & write a CSS file. Was…

Color Palette for Code Editor (.txt)