Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
microsoft.public.dotnet.framework
how to delete a line in VS2005 that starts with some characters
puzzlecracker
10/8/2008 3:45:00 PM
Say I have csharp files in the project that contain lines that start
with //: Final was removed from
I would like to remove all these lines.
1 Answer
Cowboy
10/8/2008 3:54:00 PM
0
The basic routine is to read from the file and ignore those lines. You can
also do some things with Regex, but a straight read, close reader, and write
full file back to same location will work.
You will have to set up directory/file walker that goes through the entire
structure looking for every C# file (extension .cs) and does the above.
Hope this helps!
--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA
Subscribe to my blog
http://feeds.feedburner.com/Greg...
or just read it:
http://feeds.feedburner.com/Gre...
********************************************
| Think outside the box! |
********************************************
"puzzlecracker" <ironsel2000@gmail.com> wrote in message
news:0fcc0d12-5f26-4378-9b03-a78adc721ebf@a18g2000pra.googlegroups.com...
> Say I have csharp files in the project that contain lines that start
> with //: Final was removed from
>
> I would like to remove all these lines.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
how to delete a line in VS2005 that starts with some characters
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password