w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I open sdcard folder in android file explorer?
Just check the neighbouring folders.Now all phones have the sdcard folder under mnt folder.Mine did have sdcard file.which dint open.Cz it had nothing under it.Checked other spots.Found 1.sdcard0 2.sdcard1 GestureBuilder indicated gesture was under sdcard0/gesture so i checked there and found it.Pulled it to desktop and copied under raw :)

Categories : Android

Add custom "Open With" when I right click on a file name in Android SDK Project Explorer
AFAIK there is no such functionality to add your customize programs for viewing the files in Android SDK explorer. The problem with this is that when Eclipse doesn't know what to do with a given file, it opens it with the so called "System Editor", which actually is... whatever your OS says it is, hence the "rolling dice effect". I don't think you can tell the OS to use Eclipse as the default editor (though I didn't try; anyway I wonder why anyone would actually want to do it), so you have two alternatives: either install an eclipse plug-in to manage the kind of file you want to edit (like e.g. pyDev for python), or go to Window > Preferences > Editors > File Associations and associate your file extensions to the built-in text editor in Eclipse. For more details check HERE

Categories : Android

Android studio file explorer not showing files in data folder
I found a solution based on the answer in stack overflow . How to access data/data folder in Android device? First i rooted the device .Then i modify the access permission of data folder using adb shell. the code is $ adb shell $ su # mount -o rw 1|root@android:/ # chmod -R 777 data/ Now i can access the files.Thank you @param for your valuable comment.

Categories : Android

Android Studio - Unable to open PNG file
Are you using Windows? This error could happen if the generated build file path exceeds the Windows (not NTFS) max path length of 260 characters. Make sure your project path is not too long, use short names as well. More info from MS: Maximum Path Length Limitation In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters. A local path is structured in the following order: drive letter, colon, backslash, name components separated by backslashes, and a terminating null character. For example, the maximum path on drive D is "D:some 256-character path string" where "" represents the invisible terminating null character for the current system codepage. (The characters < > are used here

Categories : Android

How to show shell hint (text that appears when hovering a file in Explorer) for a file programmatically
The IQueryInfo interface is what you want. Briefly (psuedo-code only, sorry): PCUITEMID_CHILD pidl = <PIDL of item in question> IShellFolder* psf = <IShellFolder parent folder of item in question> IQueryInfo* pqi; if (SUCCEEDED(psf->GetUIObjectOf(hWnd, 1, &pidl, 0, &pqi))) { LPWSTR lpszTip; if (SUCCEEDED(pqi->GetInfoTip(0, &lpszTip)) && lpszTip) { // do something with the tip, and then free it CoTaskMemFree(lpszTip); } } Once you have the text you can, of course, display it any way you like.

Categories : Windows

Button to open text file won't function with text file not in class root directory
This is windows specific code, I think the problem is using the file separator "/" instad of "", try changing your code to Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + "config\gameItems.txt");

Categories : Java

Open txt file, create new txt file, save old text to new file
The line outfilename$.SaveAs =:"FileName"infilename.txt",False" looks quite wrong indeed. You coud try this instead to pop-up a dialog for saving file outfilename$ = Application.GetSaveAsFilename(infilename$, "Neutral Files (*.txt),*.txt", , "Save file", "SAVE") Update : The full code is Sub test() Dim outfilename as Variant Dim infilename as Variant Dim msg As Variant infilename = Application.GetOpenFilename("Neutral Files (*.txt),*.txt", , "Open Neutral File", "OPEN", False) If infilename = "False" Then msg = MsgBox("No input file selected. Press OK to retry or cancel to quit", vbOKCancel) If msg = vbOK Then Do While msg <> vbCancel 'loop until user presses cancel infilename = Application.GetOpenFilename("Neutral Files (*.r01),*.r01", , "Open

Categories : Vba

Eclipse: Open containing folder for file NOT in the project explorer
Look at the file properties (Alt+Return or via the context menu). The location field is actually a non-editable text which means you can select the value (Alt+LCtrl+ACtrl+C) and copy it to the clipboard. If that doesn't work, then try F2. Some tooltips then become windows so you can copy&paste the content. If that also doesn't work, then I fear you'll have to file a feature request. [EDIT] Seems like you hit Bug 207467 - [PropertiesDialog] Properties page for external files

Categories : Eclipse

Is there an file explorer for windows that lets me open multiple tabs programmatically
You can use a tab control. Then you create a new tab and load it with the explorer. There are tabbed file explorers like XYplorer, but I don't know if it will be useful to you. You can also add tabs to windows explorer: http://www.howtogeek.com/howto/28997/add-tabbed-browsing-to-explorer-in-windows-7/

Categories : Misc

How do i open a text file with openFileDialog when the content of the file is also with hebrew letters?
You need to change the encoding to the Windows-1255 code page (or another code page if you know it). Encoding enc = Encoding.GetEncoding("Windows-1255"); string s = File.ReadAllText(file1, enc);

Categories : C#

copying database file from /assets to /data/data folder in file explorer - Android
Try using below code to copy database from assets to data/data/package directory package com.example.myapp; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.content.Context; import android.database.Cursor; import android.database.SQLException; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteException; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DataBaseHelper1 extends SQLiteOpenHelper{ private static String DB_PATH = "/data/data/com.example.myapp/databases/"; private static String DB_NAME = "myDB.sqlite"; private SQLiteDatabase myDataBase; private final Context myContext; public DataBa

Categories : Android

Visual Studio Test Explorer window will not open
As a brutal fix I actually decided to reset all VS settings (not ideal as you lose all your custom settings like formatting and debugging preferences!). To do this open up a cmd line and cd to the VS directory (mine was C:Program Files (x86)Microsoft Visual Studio 11.0Common7IDE) and type: devenv.exe /ResetSettings Hope this helps someone in the future...

Categories : Visual Studio

Android Studio: access a listview element in the xml file from the java file.
Assuming you have a layout file mylayout.xml with this <ListView ... android:id="@+id/listView"/> In the onCreate(Bundle savedInstanceState) : public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mylayout); ... ListAdapter myAdapter = new MyListAdapter(...); ListView listView = (ListView)findViewById(R.id.listView); //use the id specified in the layout file listView.setAdapter(myAdapter);

Categories : Android

How to access a js file from another js file in titanium studio android project
You have to use Alloy to do this, to open the Home controller view just do this: function login_Click(e){ var homeController = Alloy.createController('home'); // If home.xml's container is a Window this will work homeController.getView().open(); }

Categories : Android

Android : error libGL.so: cannot open shared object file: No such file or directory
As I'm using 64-bit Ubuntu 12.04. So, I did this $ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 openjdk-6-jdk tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386 $ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so

Categories : Android

Saving text in a local file in Internet Explorer 10
IE 10 and 11 use a distinct syntax for downloading or saving blobs to the client machine. Once you've created a blob, use: window.navigator.msSaveBlob(blob, 'file.txt'); or window.navigator.msSaveOrOpenBlob(blob, 'file.txt'); to trigger the file save or file save/open dialog. For more info, see http://msdn.microsoft.com/en-us/library/ie/hh673542(v=vs.85).aspx

Categories : Javascript

How to extract two folder path C: (same Type File: e.g Text Document) and name of the file into text file with the file size in kb
The error you observe is caused by the signature of your procedure ListFiles. In VBScript all variables/parameters are of type Variant, so you must not explicitly specify a type. Change this: Sub ListFiles(f, folderPath As String, fileType As String) into this: Sub ListFiles(f, folderPath, fileType)

Categories : Vbscript

Display folder name in Visual Studio open file tab
It can be achieved with the Tabs Studio add-in (commercial, developed by me) and its Disambiguator add-in enabled. For your two files with the name of Index.cshml, tab names will be Home/Index.cshtml and Menu/Index.cshtml.

Categories : Asp Net Mvc

How can I access a text file in the project explorer "read, write" which is not in the isolated storage in Windows Phone 7?
I found some resources that useful for you. Read File var resource = System.Windows.Application.GetResourceStream(new Uri("textfile.txt", UriKind.Relative) Write File using (System.IO.StreamWriter writer = new System.IO.StreamWriter(fileName, true)) { writer.Write("Write some text here"); } More information: read file in C# read text file in windows phone write file

Categories : C#

Python - Open All Text Files in All Subdirectories Unless Text File Is In Specified Directory
Change your loop to this: for textfile in findfiles(r'C:\Top', '*.txt'): if not textfile.startswith(r'C:\Top\1'): filename = os.path.basename(textfile) print filename

Categories : Python

Macro to open a delimeted text file in Text format
Not answer but suggestions. Excel does that automatically to predict what data type it should store and remove unnecessary details such as spaces and leading zeros. Workaround is what to do after text imported. Change the formatting of the columns so it displays leading zeros, or Change the value to Sting after the formatting Something like .Cells(R,C).Value = Format(.Cells(R,C).Value, "00000000") in a loop.

Categories : Excel

Perl Program to Read a Text File, Search for text within the File and copy the text to a new file
Why not awk? awk '/ Directory of /{at=$3;print;next}{print $0""FS""at}' your_file Perl: perl -lne 'if(/ Directory of (.*)/){$a=$1;print}else{$_.=" ".$a;print}' your_file if you want to do an inline replacement: perl -i -lne 'if(/ Directory of (.*)/){$a=$1;print}else{$_.=" ".$a;print}' your_file

Categories : Regex

getSaveFileName , getOpenFileName shows me the file to save or open, but cannot save the file or open the file in python QT
These functions only allow the user to select files, they don't actually open or save the files. In PySide, they return a tuple, so for example, saving the file would look like this: fileName, selectedFilter = QtGui.QFileDialog.getSaveFileName(self, "Save", "F:/python/bc_new_latest/bcForecasting.csv", "Excel (*.csv *.xls )") if fileName: with open(fileName, "w") as file: file.write(theCSVContent)

Categories : Python

How to open a text file?
package com.mkyong.io; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; public class BufferedReaderExample { public static void main(String[] args) { BufferedReader br = null; try { String sCurrentLine; br = new BufferedReader(new FileReader("C:\testing.txt")); while ((sCurrentLine = br.readLine()) != null) { System.out.println(sCurrentLine); } } catch (IOException e) { e.printStackTrace(); } finally { try { if (br != null)br.close(); } catch (IOException ex) { ex.printStackTrace(); } } } } Reference: http://www.mkyong.com/java/how-to-read-file-from-jav

Categories : Java

Python - exec(open('file.py').read()) reports error - No such file or directory. 'file.py'
open('xyz') does not search the various python import paths. If you give a relative path name, it starts with the current working directory, appends your path and looks there. If you give an absolute path, it ignores the current directory.

Categories : Python

Visual C++ - Cannot open text file
You're opening the stream in output mode by using ios::out. Use ios::in to read from it. You've got a lot of other issues, too. IE: -The if(!slips.eof()) after the file open will always cause an exit unless the file is empty. -In your while loop, you are (probably accidentally) attempting to write the prodID and value into the slips file using <<. Use >> to read from a stream and << to write to it.

Categories : C++

How to open text file and parse it
To change string 76,50 instead of 07650. Dim n as Integer = val("07650") Dim s as String = format(s/100) This is optional ... s = s.Replace(".",",") s = s.PadRight(5,"0") ABOUT YOUR CODE : It should be Return comboboxvalue & nummer.ToString.PadLeft(5) & naam.PadLeft(5) & Geboortejaar.ToString.PadRight(5) & format(perc / 100,"#0.00")

Categories : Vb.Net

Unable to open the text file
You need to use an input stream to open and read your file InputStream inputStream = context.getAssets().open("test.txt"); and use a Reader OR seeing as you have made a Raw folder within your res folder, call the following getResources().openRawResources(myResourceName) from within the activity.

Categories : Android

How Can I open the Text file in my MVC application?
You can use ContentResult, it is used to return text content from Controller Actions. [HttpGet] public ActionResult Log() { try { string content = string.Empty; using (var stream = new StreamReader(Server.MapPath("~/Views/Builder/TestLogger.txt"))) { content = stream.ReadToEnd(); } return Content(content); } catch (Exception ex) { return Content("Something "); } }

Categories : C#

QtCreator GUI open text file
you should make a new window by add a Dialog or Mainwindow. after that add widgets like textEdit and other things to your new Dialog. you need to learn some basics of Qt framework: there is very well documentation of Qt, you can use it. and also there is about 100 short videos of Qt learning.

Categories : Qt

Opening a file location directly with file explorer
you can do this to accomplish your task the code is given below.. public void openFolder() { Intent intent = new Intent(Intent.ACTION_GET_CONTENT); Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getPath() + "/myFolder/"); intent.setDataAndType(uri, " ");//specify your type startActivity(Intent.createChooser(intent, "Open folder")); }

Categories : Android

How to open a text file in notepad in a C program?
Given a file test.txt, you can display it in notepad on Windows with: #include <stdlib.h> int main () { system ("notepad test.txt"); return 0; } If you can be sure that your program will default to the cmd shell, you can just say system ("test.txt") and the file will open in whichever text editor is set as the default, but specifying the editor is safer because it deals with cases like the program being compiled under Cygwin, where the default shell will be sh, which doesn't open text files by default when you supply the filename at the command prompt. If you can't be sure your program will always be compiled on Windows then I would favour the ShellExecute() solution outlined by @Remy Lebeau. A program containing #include <shellapi.h> and a call to ShellExecute(

Categories : C

writing in a text file OpenCV visual studio
std::ofstream f("C:/file_to_write_to.txt"); // writing element my_matrix[10, 10] to file. assuming it's a float. f << my_matrix.at<float>(10, 10) << std::endl; f.close();

Categories : Opencv

Generate the .bat file that will copy the selected lines from the .bat file (within .bat file) to another text file
Use the lines as below Echo The land is beautiful >> %_file% echo I wanna stay here >> %_file% echo etc........ >> %_file% echo etc........ >> %_file%

Categories : Batch File

How to open url having Arabic text using php file-get-contents function
URLs can't contain non-ASCII characters. Where it seems that they do, it's in fact the browser silently converting your characters into URLescaped ones in the background. When you paste this URL into your browser: http://www.example.com/2013/07/31/الاختبار.html will in reality look like this: http://www.example.com/2013/07/31/%D8%A7%D9%84%D8%A7%D8%AE%D8%AA%D8%A8%D8%A7%D8%B1.html PHP doesn't have this ability to silently convert characters; you'll have to do it manually. To do that, run PHP's urlencode() over the URL before making the call.

Categories : PHP

Open a text file with jsp button click and java
You Could you try it like this if you want to browse the file in an external program Process p = Runtime.getRuntime().exec("C:\Path\to\notepad.exe C:\Debug\log20.txt"); And if you want to browse the file in web page you could try the following: PrintWriter out = res.getWriter(); File file = new File("C:\Debug\log20.txt"); if (file.exists()) { BufferedReader input = new BufferedReader(new FileReader(file)); String line = ""; while ((line = input.readLine()) != null) { out.println(line); } }

Categories : Java

how to write a batch file which can identify value from a text file and store that value in some other text file
This example will work for integer numbers between spaces. Special caution must be put in text file, as behaviour for ", <, |, > and & may be unpredictable. Some optimizations may be made having more information about text file. For /F "Tokens=*" %%i In (TextFile.txt) Do Call :GetNumber %%i GoTo :EOF :GetNumber If "%~1"=="" GoTo :EOF Set Number= Set /A "Number=1*%~1" If "%Number%" == "%~1" Call :StoreNumber %Number% Shift GoTo :GetNumber :StoreNumber Echo %Number%>Number.txt

Categories : Batch File

Open a file with my android App
Personally, I haven't done this before, but have you tried this solution? Why isn't my app on the list of apps to open txt file?

Categories : Android

Android open pdf file
The problem is that there is no app installed to handle opening the PDF. You should use the Intent Chooser, like so: File file = new File(Environment.getExternalStorageDirectory().getAbsolutePath() +"/"+ filename); Intent target = new Intent(Intent.ACTION_VIEW); target.setDataAndType(Uri.fromFile(file),"application/pdf"); target.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY); Intent intent = Intent.createChooser(target, "Open File"); try { startActivity(intent); } catch (ActivityNotFoundException e) { // Instruct the user to install a PDF reader here, or something }

Categories : Android

android dev open a file through os
This is done through an Intent You will need to set the action and the data. //from inside an Activity Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.fromFile(theFileYouMentioned)); try{ startActivity(i); } catch(ActivityNotFoundException) { //user doesn't have an app that can open this type of file }

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.