My (C#, .NET) application uses the Audiere library for audio output.
The requirements have grown to include output to a file (i.e. wav or mp3). Is there anyway for Audiere to do this natively? Or is there a way to capture its output and write it to a file?
...
how to read a specific file from sdcard. i have pushed the file in sdcard through DDMS and i am trying to read it though this way but this give me exception. can anybody tell me how to point exactly on that file?
my code is this.
String path = Environment.getExternalStorageDirectory().getAbsolutePath();
FileInputStream iStream = new F...
Hello all
I am just wondering what's the storage size for an iPad/iPhone app to use?
For memory, it is sure that every app can only use 100MB-like memory.
How about the storage? I mean the file system in iPad/iPhone app?
Use as much as I want until the file system is full? or something like that?
...
Hi all-
I have a python module that is shared among several of my projects (the projects each have a different working directory). One of the functions in this shared module, executes a script using os.spawn. The problem is, I'm not sure what pathname to give to os.spawn since I don't know what the current working directory will be wh...
i need to do a file search with php, and i have the filename search down, with glob, but i still need to search inside files.
i have a prototype, at tann98.vacau.com/file-search, but i need keywords, and suggestions. plus it needs to look inside files to find matches.
does anyone have ideas on how to do this kinda thing?
...
I have a text file that I want to read line by line and record the position in the text file as I go. After reading any line of the file the program can exit, and I need to resume reading the file at the next line when it resumes.
Here is some sample code:
using (FileStream fileStream = new FileStream("Sample.txt", FileMode.Open, File...
Hi
I have some class with lots of fields;
public class CrowdedHouse
{
public int value1;
public float value2;
public Guid value3;
public string Value4;
// some more fields below
}
My classmust be (de)serialized into simple Windows text file in the following format
NAME1=VALUE1
NAME2=VALUE2
What is the most co...
I'm writing command line output to a file and then want to open this file in notepad.
So I wrote something like the following (simplified example):
set logPath=log.txt
echo %date% %time% > %logPath%
notepad %logPath%
But the problem is that when the last command is run (notepad %logPath%), the file is not yet created (or the contents ...
Hello,
I'm trying to write a little software for logging data, if any type of file created in directory A.
I use FileSystemWatcher class to get information about file creation in folder A. There are many subfolder in folder A. And many users can create file in this directory in one time.
I use XML data to save log data.
XmlTextReade...
I'm writing an Android JUnit test and want to copy/reset a test fixture file (it's an SQLite database file.) If I were within the main application, I know I could just place the file in the assets directory and use getResources().getAssets().open(sourceFile)
However, this API appears to be unavailable from the ActivityInstrumentationTe...
I tried to copy one file to another from starting line upto a limit. ie.,
line 1 to 10(file1.txt)->file2.txt
but while writing "!" is skipped. what can i do for to solve it. Any help will be thankful.
The loop for that function is given below.
%NF%-> new file.
%EF%-> existing file
%1% -> line number(passed from another part)
:_doit
...
How could we get the file input full path using jquery ?
...
I have 2 different classes that i am testing to send files to the browser.
First one is at http://pastebin.org/1187259 uses Range specific headers in order to provide resuming
Second one is at http://pastebin.org/1187454 uses chunk reading to send large files.
Both work fine with one different. First one is wayyy slower than the second ...
Is there a way to print an entire file, character by character, without know it's length or worrying about how many lines it has?
Right now I read a file and count how many lines it has, read each line, send it to a manipulation function print the manipulated string out. I had to create a countLines() function and a readLine() function ...
Hi,
In any application, we can do error logging using flat file system.
How do we handle a scenario when there are multiple users having exceptions which are logged in the same flat file?
Many Thanks.
...
Hello everyone!
For some reason, this code is changing any '\n' characters from the input and replacing it with '\n\r' in the new outputed file.
I reference a couple websites, and still haven't figured it out.. Anyone have an idea?
Thanks a lot!
Socket connectionSocket = sData.accept();
InputStream inputStream = connectionSocket.getInp...
Hi guys I have got a file contain large amount of numbers
I have tried to use the following code to read it from the file, but it is super slow anyone can help to reduce the time? Thanks.
following is my code to read it in a very slow way
import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.File;
import ...
While answering this question regarding safe escaping of filename with spaces (and potentially other characters), one of the answers said to use Perl's built-in quotemeta function.
The documentation of quotemeta states:
quotemeta (and \Q ... \E ) are useful when interpolating strings
into regular expressions, because by default an in...
Hello,
I have a text file that is formatted like JSON, but in a print/view friendly format and I want to convert that string to valid JSON.
Basically, I want to read the file using PHP5 and call json_decode to deserialize the string.
But, json_decode is not able to parse the "print-friendly" json string.
I am getting error 4 Invalid or...
Hello,
I am trying to get the (pre-processed) content of an external PHP file:
file_get_contents('http://www.example.org/myfile.php');
When I do this, I get an error:
Warning: file_get_contents() [function.file-get-contents]: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known in /Applicatio...