specific

windows batch file programming

I want to write a line of text at a specific line in an already existing text file using dos batch file programming in Windows XP.Also I want to input the line number from the user. Any help will be appreciated. ...

Updating a specific portion of a text file in java

In my program I need to update the Balance column of the text file each time the user does a withdrawal. I used both the write methods as well as the append methods, but to no avail. Once the user has logged in, that particular line is stored in the array #PIN AccountNo Balance 1598 01-10-102203-0 95000 4895 01-10-102248-0 45000 9512 0...

How to eliminate preprocessor warning about pasting certain tokens

Is it possible with gcc to eliminate the warning below without eliminating all warnings? pasting "/" and "/" does not give a valid preprocessing token For a certain platform, I must use a specific cross-compiler, but I can use make, so I use gcc to create the dependencies. I know that I'm passing the “//” token to the compiler and it’...

Build Solution on TFS using a specific changeset

I am developing a project that uses TFS to build solutions. But I found an error that I do not know how to solve it. When we compile a solution, we can specify a changeset to compile, right? Imagine the following scenario: At this moment the last changeset is number C100 We created the proj file in TFS. After creating the file, the C10...

sed+text on a specific line after an IP

I have the following line in my proftpd log (line 78 to be precise) Deny from 1.2.3.4 I also have a script which rolls through my logs for people using brute force attacks and then stores their IP (ready for a black listing). What i'm struggling with is inserting (presume with sed) at the end of that specific line - this is what I've ...