![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | blank line in txt file problem ok, I'm using Add-Content to fill txt file, and that works great. However, I'm faceing the next problem: last line can't be blank line (swf file (SWIFT standard)). So, I need exeption for the last Add-Content command. Help please. |
My System Specs![]() |
| | #2 (permalink) |
| Guest | Re: blank line in txt file problem MiroslavK wrote: > ok, I'm using Add-Content to fill txt file, and that works great. > However, I'm faceing the next problem: last line can't be blank line (swf > file (SWIFT standard)). So, I need exeption for the last Add-Content command. > Help please. I'm assuming you're using a script? Can you just do a final add-content file "" at the end of your script? Might need more details... Marco |
My System Specs![]() |
| | #3 (permalink) |
| Guest | Re: blank line in txt file problem "Marco Shaw" wrote: > > I'm assuming you're using a script? Can you just do a final add-content > file "" at the end of your script? > > Might need more details... > > Marco > I don't understand. Last line in my script is: Add-Content "-}" However, I'm getting swf (txt) file with end of file like this: .... .... .... -} (blank line) and "}" char need to be LAST char in the file. |
My System Specs![]() |
| | #4 (permalink) |
| Guest | Re: blank line in txt file problem Try this [io.file]::AppendAllText('my.txt', '-}') -- Thanks, Roman Kuzmin |
My System Specs![]() |
| | #5 (permalink) |
| Guest | Re: blank line in txt file problem "Roman Kuzmin" <z@z.z> wrote in message news:OdkIFEUoHHA.4120@TK2MSFTNGP06.phx.gbl... > Try this > [io.file]::AppendAllText('my.txt', '-}') > It sure would be nice if Add-Content had a -NoNewline parameter. -- Keith |
My System Specs![]() |
| | #6 (permalink) |
| Guest | Re: blank line in txt file problem "Roman Kuzmin" wrote: > Try this > [io.file]::AppendAllText('my.txt', '-}') > > -- > Thanks, > Roman Kuzmin tnx, thats it! "Keith Hill [MVP]" wrote: > > It sure would be nice if Add-Content had a -NoNewline parameter. > > -- > Keith great idea. |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| line space in log file | systemtek | VB Script | 4 | 07-25-2008 01:49 PM |
| How do I defeat Spam with a blank Subject Line? > as such >> | Kaiser | Vista mail | 6 | 05-08-2008 12:12 AM |
| reading a big file line by line to be "out of memory" safe | freddy chavez | PowerShell | 8 | 08-02-2007 07:42 AM |
| new line in text file with out-file | Did | PowerShell | 2 | 06-20-2007 08:40 AM |
| Line not found in INF file | =?Utf-8?B?amhlbmFnZXI=?= | Vista networking & sharing | 4 | 09-12-2006 01:40 PM |