Questions tagged [linefeed]

Linefeed, also known as LF, is a character that controls the switching to the next line.

Linefeed, also known as LF, is a character that controls the switching to the next line.

303 questions
0
votes
1 answer

Should I use "\r\n" or "\n" when generating text files in Java?

So I wrote a Java program that writes a text file using the FileWriter class. In the write() there are some "\n". When I run the class file in my computer (W10) it works as intendend and the text is separated by line breaks. However, if I run the…
0
votes
0 answers

SSIS Flat File Header Blank Rows

I am trying to add a simple header to a flat file destination that takes up three lines. However when I add the header info in the flat file destination editor it either a) puts all three lines on one line, or b) if I hit enter after each line…
James
  • 21
  • 3
0
votes
1 answer

Why there is only "\r" in the binding value of my multiple line TextBox?

I have a TextBox defined as below: When I type…
spspli
  • 3,128
  • 11
  • 48
  • 75
0
votes
1 answer

How to suppress outputs from specific modules and hidden class methods in Python?

This is how the code looks like #!/usr/bin/env python3 #encoding:utf-8 import requests, numpy, fasttext, os, sys from itertools import product from math import sqrt en_model=fasttext.load_model(path='crawl-300d-2M-subword.bin') The script is…
Della
  • 1,264
  • 2
  • 15
  • 32
0
votes
2 answers

Java routine for splitting JSON text in lines at symbols

Let's say my app has to create a JSON text file in this form { "key1" : "value1" , "key2" : "value2" , "arrayKey" : [ { "keyA" : "valueA" , "keyB" : "valueB" , "keyC" : [ 0 , 1 , 2 ] } ] } from JSONObject.toString() that is one long line of text…
P5music
  • 3,197
  • 2
  • 32
  • 81
0
votes
1 answer

how to use exec to execute an arbitrary find command

In a bash script, I want to define a commandstring that specifies options and primaries for find, based on arguments that I pass to the script. Then I want to use exec to invoke find with these options and primaries. In general, I want to be able…
Jacob Wegelin
  • 1,304
  • 11
  • 16
0
votes
1 answer

Redshift External Table not handling Linefeed character within a field

I have an external table using Glue catalog and reading a CSV file. The fields are enclosed in double quotes if they have comma or a LF (LineFeed). I am able to read a field properly as a single value if there is delimiter within that field but the…
SwapSays
  • 407
  • 7
  • 18
0
votes
0 answers

C# StreamReader Readline how to get \n Line Feed

I have a line break in the middle of a line. Notepad shows it as one line however. It is not a Carriage Return, just a line feed. When I attempt to read the line using StreamReader.ReadLine(), it reads up to the LF, then stops, when I ReadLine…
Aorus1337
  • 361
  • 1
  • 3
  • 6
0
votes
0 answers

Identify Line Terminators Of Text File Using R

I have been using R to prepare files for an ETL process, and until recently, all of the text files I've been working with have had CRLF (Carriage Return & Line Feed) line terminators. Now, the line terminators on the new text files are being…
kostr
  • 836
  • 7
  • 13
0
votes
1 answer

Remove blank row while pasting data from Excel to Angular Kendo UI grid

I am using the following example: excel-paste Please look at the excel-paste.directive.ts Once the data is pasted, I need to validate and save data to database. When I paste data from Excel to the grid, in the directive it uses line feed to split…
SilverFish
  • 1,014
  • 6
  • 28
  • 65
0
votes
1 answer

Powershell Script LineFeed in Messagebox

I need help to sort the output after volume $_.mountpoint in the messagebox. if ((Get-Tpm).TPMReady -eq $true){ $tpminfo = Get-WmiObject -class Win32_Tpm -namespace root\CIMV2\Security\MicrosoftTpm [string]$tpmversion =…
0
votes
1 answer

Scroll to end of UITextView when text contains returns

I am using Swift and have a UITextView that I wish to always keep scrolling as I add new text and the length of the text is greater than what the textView can display. The following works perfectly as long as my textview does not contain any new…
Stewart Lynch
  • 875
  • 9
  • 26
0
votes
0 answers

In PHP in Windows, do 'linefeed (LF)' and 'carriage return (CR)' mean the same thing?

I'm using PHP 7.2.10 I'm using Windows 10 Home Single Language 64-bit Operating System I tried following two codes but I received the same output in both the cases : Code 1 : Code 2 :
PHPLover
  • 1
  • 51
  • 158
  • 311
0
votes
0 answers

How to append a delimiter after Carriage return

I have a record as below 1, "All of the following: ElectronicLF Fax machineLF Hard CopyLF In PersonLF Mail DeliveryLF Telephone",No,ImmediateCRLF** I have to replace LineFeed (LF) in above record with space except when at the record end (as soon as…
Venkat J
  • 305
  • 1
  • 4
  • 12
0
votes
1 answer

Loading paragraph data into Teradata

I am loading CSV file data into Teradata table, I have a record as below, Hardware support - EMC,"Geneva, Switzerland",,Hardware support.,Hardware support.,0,Other (describe),"All of the following: Electronic Fax machine Hard Copy In Person Mail…
Venkat J
  • 305
  • 1
  • 4
  • 12