| 1. |
Solve : Having trouble manipulating data read from a file? |
|
Answer» Hello, Can someone explain how to manipulate data read from a file?there are better tools to do file manipulation than using batch. even VBSCRIPT has a fair amount of FUNCTIONS for that. splitting up lines, replacing text, storing data into arrays, etc that makes things easy for a programmer. If you are learning programming, at least get a proper programming LANGUAGE. (or change your teacher )Perl is specifically designed to be easy to use for manipulating text files, I believe.Quote from: BC_Programmer on April 04, 2009, 07:45:36 PM Perl is specifically designed to be easy to use for manipulating text files, I believe.not just Perl. Python, sed, awk , even Ruby and PHPQuote from: The Hansenator on April 04, 2009, 03:08:17 PM The teacher seems to have a habit of not giving us enough information. It's a well known teacher's trick, called "hopefully making you think and learn how to discover things". Like the fact that commands have help that you see by TYPING the command, a space, and /? at the prompt. Try typing FOR /? at the command prompt. Quote from: Dias de verano on April 05, 2009, 03:54:25 AM It's a well known teacher's trick, called "hopefully making you think and learn how to discover things". Like the fact that commands have help that you see by typing the command, a space, and /? at the prompt. I'm familiar with that trick but it wasn't until yesterday, after stumbling across it on the internet, that I knew there even was a FOR command. It's hard to look up something when you don't know what to look for. I did type FOR /?, and maybe I'm a little slow, but I wasn't able to figure it out by looking at the help file.Thank you to both of you, that was just what I needed! Quote from: devcom on April 04, 2009, 03:15:32 PM Code: [Select]@echo off Quote from: Geek-9pm on April 04, 2009, 03:59:24 PM FOR /f means to read lines for just one file. |
|