-
Notifications
You must be signed in to change notification settings - Fork 10
Add‑NewLine
dscbot edited this page Oct 20, 2024
·
1 revision
Adds a new line at the end of a file.
Add-NewLine -FileInfo <FileInfo> [-AtEndOfFile] [<CommonParameters>]
The Add-NewLineAtEndOfFile function adds a new line at the end of the specified file.
Add-NewLineAtEndOfFile -FileInfo "C:\path\to\file.txt" -AtEndOfFile
Adds a new line at the end of the file located at "C:\path\to\file.txt" without prompting for confirmation.
Specifies that the new line should be added to the end of the file.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Specifies the file to which the new line will be added.
Type: FileInfo
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.