Questions tagged [writer]

an abstract class, interface or naming convention which is used to state that the given object is used to write data to a file, stream, device or other destination

A Writer clause is often used as a part of a name of an object in object-oriented programming. Good examples are BufferedWriter from Java 6 or StreamWriter from C#.

Abstract writers are often defined as interfaces or abstract classes to provide means of making the process of writing separable from what is being written. In Java or .NET there are Writer implementations for files, network connections and, more general, streams.

456 questions
-1
votes
1 answer

How can i get libreoffice writer to automatically add a closed bracket when I open a bracket?

I am currently writing my bachelor's thesis in Libreoffice Writer. To make the working process easier I wondered if there is a way to get writer to automatically add an closed bracket when I type an open one. This would be useful, because I have to…
-1
votes
1 answer

Combine Multiple InputStreams

My question may be something really basic, but I am not able to find a working solution. In my code I have three new InputStreams. InputStream fstream = WasuTimeTool.class.getResourceAsStream("/resources/dbConParam.txt"); BufferedReader…
wg15music
  • 199
  • 4
  • 13
-1
votes
1 answer

Java few errors while writing to text file?

I have a java assignment, and my last two errors are laid out in this code. For a little background, my code is taking input from a GUI and writing it into a text file. I realize you may need more code, and I will give more if needed, I just can't…
Paul
  • 49
  • 2
  • 11
-1
votes
1 answer

Why won't the BufferedWriter instantiation write to a txt file in Java?

I am trying to instantiate a object with BufferedWriter and it wont work. The problem happens when I use the write function. Why won't it let me write to the file? The error is cannot find symbol. Please help me. I know someone knows. Why wont it…
-1
votes
2 answers

String writer not writing to the file

The aim of my code is to eventually ask the user for a file name and if it is already a file in the current directory then print an error message, if it is not however then it is supposed to create the file and write lines to the newly created file…
JamesB18
  • 31
  • 2
  • 9
-1
votes
1 answer

What is the equivalent function for " cvWriteFrame " to use Mat - image type?

What is the equivalent function for " cvWriteFrame " to use Mat - image type ? In IplImage it can be done using like below: CvVideoWriter *writer; IplImage* frame = " IMAGE "; cvWriteFrame(writer, frame); How to write video for Mat Files.
RoboMe
  • 113
  • 2
  • 13
-1
votes
1 answer

How can I write a string to a .html file?

I am creating a HTML Webpage Generator as part of a college assignment. What I am trying to do is set the header by taking in the users text and saving it to string through the use of a get / set class. However when I try to output the text to file…
user2978884
  • 47
  • 1
  • 10
-1
votes
1 answer

Need help writing Unit Tests in Java regarding writer/text formatter. Java

I'm currently working on a text formatter project, and I'm starting with the LineAssembler class. However, we are required to write unit testing before writing any code and I'm kind of stuck. Would anyone shed some lights please? I've also put the…
Iann Wu
  • 155
  • 2
  • 12
-1
votes
1 answer

Why my program writes file over and over instead of adding data?

Why my program writes file over and over instead of adding data? I want to write in file but it always delete previous and write new... BufferedWriter writer = null; try { writer = new BufferedWriter(new FileWriter("koce_podatki.txt",…
-2
votes
1 answer

Some CSV values appear in the wrong column (with open python)

I'm writing data to a CSV file in Python. The data is in Unicode-8. I've written several rows successfully. However, a part of the data from column B is written to column A. The data already includes commas and numbers in English along with Arabic…
Esraa Abdelmaksoud
  • 1,307
  • 12
  • 25
-2
votes
2 answers

Writer in java static method

I have used the writer before but for some reason I am having trouble implementing it in the following method. I have never put the writer in a static method. //replace an empty seat with a person in the seating chart public static void…
-2
votes
1 answer

csv writerows only writing the first row but not others

i am trying to write some data into a new csv i am trying to split the text by percentage but fails to do so, when i write into csv it only writes the col names of the old csv into the new one all other lines are not there. for root,dirs,files in…
vishesh khare
  • 21
  • 1
  • 7
-2
votes
1 answer

reading a text file its size (nearly 4 miga )c#

I write a code to read many text files and grouped them in one file called (all.txt), after that I read all.txt file to count the word frequency, and the result appears in richtextbox. the code work well but the problem when I run the program, part…
dany
  • 1
  • 3
-2
votes
1 answer

Writing into file results in gibberish Java

I'm trying to write some numbers into a *.txt file, using write.write() function. When I open the created file with notepad I see gibberish, but when I open with notepad++, the file is ok. Can anyone explain why is this happening? try { …
Keselme
  • 3,779
  • 7
  • 36
  • 68
-2
votes
3 answers

Java writes writes line multiple times?

static void goOut(String in) { //instance variables String fileCopy = currentLine + in; try { FileWriter writer = new FileWriter(output,true); writer.write(line1 + System.getProperty("line.separator",…
Adz
  • 2,809
  • 10
  • 43
  • 61
1 2 3
30
31