Questions tagged [line-separator]
6 questions
2
votes
1 answer
Safest way to write CSV file in Java for cross-platform use (due to line separator discrepancies)?
I'm initially looking at using Apache Common's csv library's CSVPrinter, and it provides different record separator choices. Either \n, \r or \r\n. Or I could just set using System.lineSeparator(). However, this is just honoring the line separator…

Superziyi
- 609
- 1
- 9
- 30
2
votes
0 answers
How to delete line separator for ContextMenu of UICollectionView?
I am implementing context menu for UICollectionView using the following function:
fun collectionView( _collectionView: UICollectionView, contextMenuConfigurationForItemAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration?
All work…

Ice
- 680
- 1
- 10
- 23
1
vote
0 answers
PhpStorm files are all modified after clone - line separators
I borked my local codebase, so I mv'ed everything to another dir and then cloned the codebase from BitBucket. Now, all of the files are status "modified" (color light blue) in PhpStorm, but they are identical to what's in the repo.
Edit: when I…

Andrew Koper
- 6,481
- 6
- 42
- 50
0
votes
0 answers
How to check if last line of a file is new line terminated without knowing exact system in advance in Java?
I want to check if the last line of a file is new line terminated in Java. If it is new line terminated then my program can continue but if not then I have to throw an error.
The problem is I don't know in advance what the system is. Without knowing…

Annie T
- 37
- 6
0
votes
1 answer
Creating a seperator in react native
I'm trying to create a separator line between text.
Here is my Separator component
import { View, StyleSheet } from "react-native";
const Seperator = () => {
return ;
};
const styles = StyleSheet.create({
…

user16340489
- 1
- 1
-1
votes
4 answers
How do I split a string in Java with System.lineseparator AND commas?
I have a file of integers, similar to the following:
9,4, 11, 2, 40, 17,11,20,9,20, 15,13, 19, 35,12,14, 13,1, 0,20,9, 1
40,29, 40, 25, 30, 12, 31, 27,39,7,37,15,31,1,26, 36,36, 35,30, 5, 24
25, 9, 20,31, 18, 11, 33,22, 39,40, 4, 23,34, 13, 16, 19,…

A_J
- 3
- 3