Questions tagged [readfile]

ReadFile() is a Windows API function to read data from the specified file or input/output (I/O) device. Reads occur at the position specified by the file pointer if supported by the device.

2383 questions
0
votes
3 answers

How to read Arabic text using PHP

I have PHP code that read from text file and allow the user to search for a specified string. The system work perfect on English text but when it comes to Arabic text the system doesn't display anything. I know that the issue is in the UNICODE but I…
Rany Fahed
  • 39
  • 3
  • 11
0
votes
0 answers

how to read and search TXT file and using php

i have PHP code that open TXT file and read it then allow the user to make a search on any word, if it exist it will display it with the line number. i need the code to search for the user input and display the word with the line number as a…
Rany Fahed
  • 39
  • 3
  • 11
0
votes
1 answer

how to search for a string in text file using PHP

i have a php code that read TXT file and display its content. i want to allow the user to make a search on any word he want and if its available the system will display it with the line number. until now i was able to read the text and display it…
Rany Fahed
  • 39
  • 3
  • 11
0
votes
0 answers

Read File Assembly Language, data from text file not showing up in memory (3Fh)

I've been tasked to create a very basic text editor as a project. I'm currently trying to take an argument on the command line, open the file, read it, etc. The issue I'm having is either I'm not understanding where in memory the contents of the…
0
votes
1 answer

Reading and storing a text file into an array with Javascript

I want to split a text file line by line, and then on encountering a character in the line (':'), to store it in an array. I need that array to plot points on a map. I can do the plotting fine when I do it with a static array. var map = new…
harry04
  • 900
  • 2
  • 9
  • 21
0
votes
2 answers

Read all types of files python 3

I'm working on an application in Python 3, but what I want is to upload any type of file. e. g. in c function : fopen() you can load any file type. Is there any way to do that? already tried with : open () but it throws me errors:…
JUAN ALVARES
  • 75
  • 11
0
votes
1 answer

Comparing tuple values from text file in Python 3

I'm aiming to display records of employees with a salary between 2 user inputted values (in a format specified in my function printTuple(data)). So far I use the function choice2() to open the file, read line by line in a for loop, convert the line…
Sean2148
  • 365
  • 1
  • 3
  • 13
0
votes
1 answer

ReadFile in TextArea JAVA

I want the textarea show the content of a file txt. Here is my code, it just shows the last line of the text, I know the problem is ta1.settext(). Can someone pls give me some advice? public void actionPerformed(ActionEvent arg0) { …
0
votes
2 answers

How to read a .txt file for each int on a line & storing to array?

public class assignment2 { public static void main(String[] args) throws IOException { // TODO Auto-generated method stub FileInputStream fstream = new FileInputStream("assignment2.txt"); BufferedReader br = new…
JpersaudCodezit
  • 143
  • 2
  • 13
0
votes
2 answers

reading from a file wont read the first value Java

So i Have this code going on, I need it to open a file, and scan the two integers in the file, then I need it to store the two numbers. The numbers are restricted to between 1 and 10 for the first number and between 1 and 39 for the second number. I…
0
votes
0 answers

PHP Readfile, limit concurrent downloads per ip?

I've setup php to authorize download of file which works header("Content-Disposition: attachment; filename=\"" . basename($_GET[l]) . "\""); header("Content-Type: application/force-download"); header("Content-Length: " .…
karnehe
  • 325
  • 2
  • 12
0
votes
2 answers

Function is not being called after input assigns a value (Python)

I have a small file with a bunch of phrases on each line. I want the user to type a number and that number will print the selected line. def printSpecLine(x): print('started') with open('c:/lab/save.txt') as f: for i, line in…
user2113228
  • 41
  • 1
  • 7
0
votes
1 answer

How to read from txt file line and print arrays of strings and integers

I am reading from a text file a specific line defined by a user input with if(nameLine.contains(inputFileName)){ I am trying to print an array of names and array of numbers from that line. Could anyone help me out with how to do so? Do I have to…
Rish
  • 73
  • 7
0
votes
1 answer

Error: Could not find or load main class Disneyland

My code compiles and I have two text files that need to be read from the program but when I run the program I get the following error: the menuItems.txt contains: Churro Ice Cream Hamburger Cheese burger Turkey Leg Corn Dog Pizza Funnel…
K. Lujan
  • 1
  • 3
0
votes
1 answer

PHP readfile and download not working

I am trying to write a PHP script that will download a file on the client side. The file can be Excel (xlsx) or JSON. The URL will look like: http:///php/download.php?file=/some/path/file.xlsx&name=file.xlsx&format=xlsx And my PHP script…
shikhanshu
  • 1,466
  • 2
  • 16
  • 32