File I/O is input/output that involves the file system. This could include performing operations on directories and files, such as creation and deletion, reading files, and writing output to files.
0
votes
0answers
6 views
How to write contents of linked list into text file for more than one line?
Since my last visit here,I have made few changes in the code,implemented a tree to give users choice,seperated some codes into method and then into different files.I am now running the main program ...
-1
votes
2answers
37 views
Large file deleting multiple lines in Perl
I have a large file I want to remove multiple lines from using Perl, so slurping is not an option.
Its a spice file is something like this:
X1 param param param
+param param param
+param param param
...
1
vote
0answers
16 views
Iterating a DirectoryStream and changing contents of a directory at the same time
The documentation of DirectoryStream clearly states:
The iterator is weakly consistent. It is thread safe but does not
freeze the directory while iterating, so it may (or may not) reflect
...
0
votes
3answers
22 views
Hide html input element until javascript loads
I have a form input (type='file') that I'm styling using this JQuery plugin. Basically it overlies a new span over the input element as a mask of sorts and boxes it all up in a div. The issue is ...
-2
votes
2answers
33 views
perl read same line from two files
I want to add up the value of corresponding lines from two files. Is there a way to specify the input file line number for both files and finish that in one loop? (of course you can read in one file ...
2
votes
2answers
59 views
c++ i/o prob when appending file
I'm trying to write an object to a file. When I run it once, it works perfectly -- as the file is empty --, but when I try to run it a second time, the program crashes after taking nothing from the ...
0
votes
0answers
9 views
How to write zero in Octave with dlmwrite() in .csv file
I have a matrix that I want to save in .csv file, in Octave.
Matrix is 28000x2. The second column has zero values.
I save matrix with following code:
dlmwrite("pred_nn.csv", N, ",");
So each row ...
0
votes
1answer
29 views
Run a SQL file on .MDF file using C#
I have got a .MDF file at specific location on which I want to run .sql file. I am using following code but it doesn't do it very well.
it always gives me error that failed to connect to the server ...
2
votes
4answers
57 views
Reading space separated values file in c++ error
I am trying to get float values out of a file to use them in my program. I used the following forum to construct the program C++: Read file line by line.
But the values obtained by doing so appear to ...
0
votes
0answers
18 views
Tornado non-blocking file I/O
Currently I am using tornado to build a web application for sharing images. After one image is received, I need to write it to the file system.
1. If I open one thread to save one image, lots of ...
0
votes
0answers
24 views
Tapestry - Writing a file to webapp directory
I'm trying to write out some xml to a file within a subdirectory of the webapp. Let's say for this case the directory is:
C:\Tapestry\xyz\src\main\webapp\directory1\
How can I get the part of the ...
0
votes
1answer
52 views
Files in python are empty for no reason
I have tried to split up my world generation from my actual game, since I usually fail with it. But for some reason it keeps insisting the file is empty/ the variable gained from it is empty, and ...
0
votes
7answers
47 views
Counting the Words in a String from a file
I have a small console application that I am working on, and it returns several 0's instead of the actual count of words. I have also noticed in some regards that my logic will be flawed since I am ...
3
votes
2answers
44 views
Understanding flash file system wear in append mode
I have to write to an ever-growing log file on a flash device (MMC card), and I'm concerned about flash wear.
Let's say I use fopen or std::ofsteam::open to open a log file in write/append mode. That ...
1
vote
1answer
25 views
Is it possible to force case-sensitivity in MATLAB for file operations like LOAD?
MATLAB is case-sensitive for calling functions, even on Windows:
>> edit Untitled
>> untitled
Cannot find an exact (case-sensitive) match for 'untitled'
Is there a way to enforce case ...