Questions tagged [fromfile]

51 questions
-1
votes
1 answer

Sorting elements in dynamic array by same name

I have a program to write in C++ that will generate files with the names of the same teachers, which are to be additionally sorted chronologically (by day and hour): (here is an example.txt…
-1
votes
2 answers

Scala exception in thread "main" java.io.FileNotFoundException

Below is my Scala code: import scala.io.Source case class TempData(day:Int , DayOfYear:Int , month:Int , year:Int , precip:Double , snow:Double , tave:Double, tmax:Double, tmin:Double) object TempData { def…
Harshit Kakkar
  • 117
  • 2
  • 12
-1
votes
2 answers

How can I partially read 2d satellite file in Python? (binary, fromfile)

I have a lot of satellite data that is consists of two-dimension. (I convert H5 to 2d array data that not include latitude information I made Lat/Lon information data additionally.) I know real Lat/Lon coordination and grid coordination in one…
-2
votes
1 answer

Get data from a file and randomly show lines without duplicating in C

I need to get Questions from a file and then randomly show them to enter answers. What I have done was I generate a random number and then file is reading line by line.When it meets the randomize number it will shows the relevant line. now all…
pdm LVW
  • 149
  • 1
  • 11
-2
votes
1 answer

Getting an image path using fromfile()

String^ path = "C:\Users\Abu Bakr\Pictures\Photoshop\Thumbnail for zactonia.png"; Picture->Image = System::Drawing::Image::FromFile(path); I am trying to make a slideshow program. This is my problem I cannot put the image inside the picture…
-3
votes
2 answers

How do I add an image to a label?

I have to add image to my label, but I can't find solution how to do this. I'm trying by use this: InitializeComponent(); url = Directory.GetCurrentDirectory() + @"/Cards/cardSkin.png"; mylabel.Background = new ImageBrush(new…
herblack
  • 31
  • 1
  • 1
  • 2
1 2 3
4